Koha/circ
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
..
add_message.pl Fix FSF address in directory circ/ 2010-03-16 20:17:50 -04:00
billing.pl Fix FSF address in directory circ/ 2010-03-16 20:17:50 -04:00
bookcount.pl Bug 4372 - Fix for bookcount.pl not counting started transfers as seeing an item 2010-04-29 22:03:42 -04:00
branchoverdues.pl Partial fix for Bug 5745, Overdues with fines report not showing titles 2011-02-15 10:12:36 +13:00
branchtransfers.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
circulation-home.pl Fix for bug 6243 - Link to fast cataloging missing from circulation home page 2011-04-22 06:57:40 +12:00
circulation.pl Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-09-27 09:43:25 +13:00
del_message.pl Fix FSF address in directory circ/ 2010-03-16 20:17:50 -04:00
hold-transfer-slip.pl Bug 2505 - Add commented use warnings where missing in the circ/ directory 2010-04-21 20:20:03 +12:00
overdue.pl Bug 6679 : fix 3 perl::critic warnings 2011-09-21 14:59:34 +12:00
pendingreserves.pl Bug 2505 - Add commented use warnings where missing in the circ/ directory 2010-04-21 20:20:03 +12:00
reserveratios.pl bug 6724: enable decimals on values greater than 1 2011-09-07 08:39:18 +12:00
returns.pl Merge remote-tracking branch 'kc/new/enh/bug_5922' into kcmaster 2011-08-01 13:03:34 +12:00
selectbranchprinter.pl Bug 6841 - A member with cataloging permissions cannot change branches (when independent branches is set on) 2011-09-14 21:44:03 +12:00
stats.pl Bug 2505 - Add commented use warnings where missing in the circ/ directory 2010-04-21 20:20:03 +12:00
transferstoreceive.pl Improve display of information on Transfers to your library report 2010-03-16 21:12:20 -04:00
view_holdsqueue.pl Fix for 5143, now with IE debug removed 2010-12-15 09:31:33 +13:00
waitingreserves.pl Bug 6121: Holds awaiting pickup 2011-09-04 20:03:37 +12:00
ypattrodue-attr-search-authvalue.pl Bug 6679 : fix 3 perl::critic warnings 2011-09-21 14:59:34 +12:00
ysearch.pl Bug 6773: circ/ysearch.pl is unlimited 2011-09-25 15:05:56 +13:00