Koha-clms/members
Ian Walls 27de4e13e4 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>
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-10-08 17:42:14 -04:00
..
boraccount.pl Bug 6732 : Showing the bibliographic title on the manual invoices line 2011-09-09 22:15:53 -04: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 Bug 5728: adding note and manager_id fields to accountlines 2011-04-09 21:25:18 +12:00
maninvoice.pl Bug 5728: adding note and manager_id fields to accountlines 2011-04-09 21:25:18 +12:00
member-flags.pl Additional fixes for Bug 5422, Separate state field for patron's adresses 2011-04-09 11:52:07 +12:00
member-password.pl Additional fixes for Bug 5422, Separate state field for patron's adresses 2011-04-09 11:52:07 +12:00
member-picupload.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
member.pl Bug 6108 - Quicksearch in member.pl does not display paging correctly 2011-04-09 10:47:22 +12:00
memberentry.pl Bug 6116: Adding a child patron 2011-08-16 22:22:01 -04:00
members-home.pl Bug 2505: Suppress some warnings emitted by members-home.pl 2011-07-14 21:07:10 -04:00
messaging.pl Bug 6164 Send Borrower Data to template consistently 2011-04-12 09:30:33 +12:00
moremember.pl Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-10-08 17:42:14 -04:00
notices.pl Bug 6164 Send Borrower Data to template consistently 2011-04-12 09:30:33 +12:00
patronimage.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
pay.pl Bug 5728: adding note and manager_id fields to accountlines 2011-04-09 21:25:18 +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 Additional fixes for Bug 5422, Separate state field for patron's adresses 2011-04-09 11:52:07 +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