Koha/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.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
default_messageprefs.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
deletemem.pl Fix for Bug 5029 - Update patron deletion error page 2010-12-02 09:13:38 +13:00
guarantor_search.pl Bug 5422: Add missing fields to deletedborrowers and change datatype to text 2011-04-09 11:52:07 +12:00
mancredit.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
maninvoice.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
member-flags.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
member-password.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
member-picupload.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
member.pl Fix for Bug 6669 - If a patron search returns one result, redirect to patron details page 2011-08-05 10:26:52 +12:00
memberentry.pl Bug 6116: Adding a child patron 2011-08-17 10:13:54 +12:00
members-home.pl Bug 2505: Suppress some warnings emitted by members-home.pl 2011-07-11 21:05:37 +12:00
moremember.pl Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-09-27 09:43:25 +13:00
notices.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
patronimage.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
pay.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
paycollect.pl Bug 3498 [ENH] Allow Partial Payment of Fines 2011-09-13 08:40:49 +12:00
printfeercpt.pl Bug 4440: Revised combined patch to print fee receipts and invoices 2010-11-18 14:33:27 +13:00
printinvoice.pl Bug 4440: Revised combined patch to print fee receipts and invoices 2010-11-18 14:33:27 +13:00
readingrec.pl Fix for Bug 5436 - Extended patron attributes display improvements 2011-09-23 15:35:54 +12:00
setdebar.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
setstatus.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
update-child.pl Bug 5673: test guarantorid consistently 2011-02-03 22:10:24 +13:00