[Koha-bugs] [Bug 22813] New: searchResults queries the Koha::Patron object inside two nested loops

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 30 17:22:04 CEST 2019


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

            Bug ID: 22813
           Summary: searchResults queries the Koha::Patron object inside
                    two nested loops
 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: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org
  Target Milestone: ---

I haven't benchmarked this, but it seems really bad and easy to fix.

To verify:
Go to C4::Search:2119, notice the IF includes a query for a Koha::Patron
object, and then for its related Koha::Patron::Category object. This is done
for each item, on each record in the resultset WTF

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


More information about the Koha-bugs mailing list