Go to file
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
C4 Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-10-08 17:42:14 -04:00
acqui Bug 6824 - correctly check basket viewing permissions 2011-10-08 12:44:02 -04:00
admin Bug 6755 follow up 2011-10-08 12:41:31 -04:00
authorities Bug 6679 : Enable Critic tests for authorities and fixed resulting warnings 2011-10-08 12:44:15 -04:00
basket Bug 6129 - [3.4.x] this adds an ISSN to serialssolutions URLs 2011-09-13 20:29:28 -04:00
catalogue Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
cataloguing Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-10-08 12:53:38 -04:00
circ Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-10-08 17:42:14 -04:00
debian Bug 6651 - fix splitting of names when updating to 3.4 2011-09-13 11:13:01 -04:00
docs Adding new developer to history 2011-10-08 17:27:46 -04:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 4841: biblio-level itemtypes not searchable in advance search by itype 2011-10-08 17:34:27 -04:00
install_misc Bug 5468: removin apt-get-debian-lenny and updating INSTALL.debian 2011-08-03 22:43:25 -04:00
installer Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
koha-tmpl Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-10-08 17:42:14 -04:00
labels bug_6318: Always give predefined fields drop downs on label layout edit 2011-09-15 20:21:17 -04:00
members Bug 6801: checkoverdues returns unnecessary fields, causing slowness 2011-10-08 17:42:14 -04:00
misc Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
offline_circ bug 2975: whitespace and formatting cleanup 2011-03-07 14:35:21 +13:00
opac Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
patroncards Bug 6643 -- Able to download patron card batches as an unauthorized user 2011-08-01 12:40:04 -04:00
reports Fix for Bug 6602 - Reports dictionary doesn't properly recognize text columns 2011-09-02 14:42:34 -04:00
reserve Bug 6562: Silence runtime error in reserve/request.pl 2011-09-02 14:54:22 -04:00
reviews Modifying Members : Add Mod and GetMember 2009-09-30 11:29:23 +02:00
rotating_collections Bug 6553 : Follow up adding license statements 2011-08-14 13:41:07 -04:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug 6479 Converts all the serialseq variables to UTF-8. 2011-09-04 21:05:27 -04:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Corrects an error when showing a suggestion linked to a deleted budget. 2011-04-05 10:04:08 +12:00
svc bug 4896: granular permissions now always on (DB rev 138) 2010-06-19 07:56:03 -04:00
t Fixing a broken test 2011-10-08 12:52:54 -04:00
tags Fix for Bug 2377 - Review tags: format date according to system preference 2010-10-06 09:31:56 -04:00
test bug 5309: tweak so that background progress doesn't exit immediately 2010-10-26 12:14:46 -04:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools Bug 6460: alternative fix, updating template and script instead of C4::Log 2011-10-08 12:47:44 -04:00
virtualshelves Bug 6555 : only 10 lists show in the staff client 2011-09-09 22:16:23 -04:00
xt Bug 6458 Template Toolkit files test case 2011-08-18 06:53:48 -04:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
INSTALL Updating upgrade information to note the fact language templates need 2011-06-13 20:52:35 -04:00
INSTALL.debian Bug 5468: removin apt-get-debian-lenny and updating INSTALL.debian 2011-08-03 22:43:25 -04:00
INSTALL.fedora7 fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
INSTALL.opensuse Updating INSTALL.opensuse file with the changes by Freek de Kruijf 2011-06-13 20:52:22 -04:00
INSTALL.ubuntu Updating upgrade information to note the fact language templates need 2011-06-13 20:52:35 -04:00
INSTALL.ubuntu.lucid Updating upgrade information to note the fact language templates need 2011-06-13 20:52:35 -04:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
MANIFEST.SKIP Bug Fixing : 3334 2009-06-19 06:33:34 -05:00
Makefile.PL Bug 3644 Add support for NORMARC 2011-03-30 10:13:37 +02:00
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Bug 6411 add another example to README.robots 2011-07-10 14:32:31 -04:00
about.pl Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
edithelp.pl Bug 6649 Allow help screens editing 2011-10-08 12:52:12 -04:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl Bug 6649 Allow help screens editing 2011-10-08 12:52:12 -04:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
koha_perl_deps.pl Bug 4844 Remove a circular dependency in koha_perl_deps.pl 2010-06-03 19:59:10 -04:00
kohaversion.pl Updating Version Number to 3.04.05.000 2011-09-26 19:47:59 -04:00
mainpage.pl remove last vestiges of NOTMARC mode 2010-10-21 21:06:52 -04:00
rewrite-config.PL Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00

README

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/