[Koha-bugs] [Bug 29702] New: all_libraries routine in library groups make a DB call per member of group

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 15 16:44:03 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29702

            Bug ID: 29702
           Summary: all_libraries routine in library groups make a DB call
                    per member of group
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

The current code gets all group members, then loops through and fetches the
library if there is a branchcode, or recursivley calls itself if a group. This
slows down performance

To recreate:
1 - Add 100 items to a biblio
2 - Define a library group as a hold group
3 - Add all libraries to the group
4 - Set 'Default checkout, hold and return policy'->'Hold pickup library match'
= 'Any library'
5 - place a hold on the record and note load time after patron is selected
6 - Set 'Default checkout, hold and return policy'->'Hold pickup library match'
= 'Patrons hold group'
7 - place a hold, note longer load time after patron selection

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list