[Koha-bugs] [Bug 30232] Acquisition logged in user performance

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Mar 5 03:50:44 CET 2022


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

--- Comment #4 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 131393
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131393&action=edit
Bug 30232: Logged in user performance for CanUserUseBudget()

Some acquisition methods can take borrowernumber or a Koha::Patron->unblessed.
When called with logged in user, sometimes in a loop, performance will be
better if fetching Koha::Patron of logged in user only once.

This patch optimises call for CanUserUseBudget();

You may benchmark on a user with a lot of budgets acess.

Test plan :
Play with impacted pages
and check budgets list is the same than wihtout patch

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


More information about the Koha-bugs mailing list