[Koha-bugs] [Bug 7016] New: CanBookBeReserved uses GetItemsInfo unnecessarily

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 12 21:30:19 CEST 2011


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.walls at bywatersolutions.com
        ReportedBy: ian.walls at bywatersolutions.com
         QAContact: koha-bugs at 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.


More information about the Koha-bugs mailing list