Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Ian Walls 26acaf3dfa Bug 6801: checkoverdues returns unnecessary fields, causing slowness
Explicitly specifies which fields to return in C4::Overdues::checkoverdues
SQL:  all of biblio, items, and issues, and everything in biblioitems
EXCEPT marc, marcxml and timestamp.

Bug 6801: member details page taking long time to load when many checkouts present

This patch removes the call to GetMemberDetails in build_issue_data; this heavy-weight
subroutine was being run for every single item a patron (or their relatives) have checked out.
Instead, the borrowers first name, surname and cardnumber are added to the GetPendingIssues query.
I believe this is reasonable since GetPendingIssues can now return issues for multiple borrowers.

Also corrects the $borrowernumber used for GetIssuesCharges and CanItemBeRenewed; was using the borrower whose
page we were on, NOT the borrower of that specific item (which would be different in the Relatives Checkouts tab).

Template calls to [% scope.borrowername %] are now broken up into [% scope.firstname %] [% scope.surname %].

Signed-off-by: Liz Rea <lrea@nekls.org>
On my test data, a patron with 180 checkouts (without this patch) would take more than a minute to bring back the circulation.pl and moremember.pl pages.
With this patch, the time is reduced to 5 or so seconds.

Big ups to Ian for tenaciously hunting this one down.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-09-27 09:43:25 +13:00
..
boraccount.tt Bug 6732 : Showing the bibliographic title on the manual invoices line 2011-09-07 08:51:20 +12:00
deletemem.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
guarantor_search.tt Bug 6750 Guarantor search broken on translated templates 2011-09-07 20:59:26 +12:00
mancredit.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
maninvoice.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
member-flags.tt Bug 6794 : Fixing a bug with member flags in IE 2011-09-01 21:02:38 +12:00
member-password.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
member.tt Fix for Bug 6377 - fines should be red on patron search 2011-06-10 14:54:23 +12:00
memberentrygen.tt Fix for Bug 6458 Follow-up for memberentrygen.tt 2011-09-14 10:07:23 +12:00
moremember-brief.tt Bug 5252 - Phone labels on patron creation 2011-08-14 20:06:03 +12:00
moremember-print.tt Bug 4951 - Print page doesn't close after print This patch adds the print/close functionality present on all other slips to the full page account summary. 2011-07-10 20:25:39 +12:00
moremember-receipt.tt Bug 6126: Slip print doesn't work on Webkit based browsers 2011-04-13 12:00:31 +12:00
moremember.tt Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-09-27 09:43:25 +13:00
notices.tt Bug 3941: Follow up 2011-09-23 10:06:47 +12:00
pay.tt Bug 3498 [ENH] Allow Partial Payment of Fines 2011-09-13 08:40:49 +12:00
paycollect.tt Bug 3498 [ENH] Allow Partial Payment of Fines 2011-09-13 08:40:49 +12:00
printfeercpt.tt Bug 6126: Slip print doesn't work on Webkit based browsers 2011-04-13 12:00:31 +12:00
printinvoice.tt Bug 6126: Slip print doesn't work on Webkit based browsers 2011-04-13 12:00:31 +12:00
readingrec.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
search.tt Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
update-child.tt Fix for Bug 6501 - missing scroll bar when updating child 2011-06-20 11:51:22 +12:00