[Koha-bugs] [Bug 30269] Use objects directly to display holds on request.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 10 15:13:17 CET 2022


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 131558
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131558&action=edit
Bug 30269: Use objects directly on request.pl

This patch removes our loop over the hold objects, and simply passes them
directly to the template

Template is adjusted to use ojbects and accessor method
Related objects are prefetched to avoid more DB calls when display
Use of 'iswaiting' and related methods are removed - it is faster to use the
accessor and test

To test:
1 - Place many holds on a record
2 - Set soem waiting, some in transit
3 - View the holds page and note loading time
4 - Apply patch
5 - Reload
6 - Page appears the same
7 - Load time is faster (more with more holds)

-- 
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