http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7016
Bug #: 7016 Summary: CanBookBeReserved uses GetItemsInfo unnecessarily Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_6 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Architecture, internals, and plumbing AssignedTo: ian.wa...@bywatersolutions.com ReportedBy: ian.wa...@bywatersolutions.com QAContact: koha-bugs@lists.koha-community.org C4::Reserves::CanBookBeReserved uses GetItemsInfo($biblionumber) to get the itemnumbers for all the items attached to the biblio in question. However, GetItemsInfo is a very heavy-weight subroutine, pulling in data from all over the database. This data includes a run of C4::Reserves::CheckReserves(), as well as pulling in the last three borrowers from old_issues. Using get_itemnumbers_of(($biblionumber)) would greatly reduce the cost of CanBookBeReserved. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/