[Bug 14962] Temp Shelving Location / On Display Module
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14962 --- Comment #166 from Jake Deery <jake.deery@openfifth.co.uk> --- Created attachment 194841 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194841&action=edit Bug 14962: (QA follow-up) Eliminate N+1 Koha::Items->find in search result rendering Five display-aware helper closures in C4::Search each independently called Koha::Items->find($item->{itemnumber}). For a search page with 20 results and 5 items each, this produced up to 500 extra DB queries per page when UseDisplayModule was enabled. Introduce a shared $item_obj_cache keyed by itemnumber so the item object is fetched at most once per item across all five closures. Sponsored-by: ByWater Solutions Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org