[Koha-bugs] [Bug 18821] TrackLastPatronActivity is a performance killer

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 1 11:15:00 CEST 2018


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

--- Comment #45 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 75729
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75729&action=edit
Bug 18821: (QA follow-up) Last tweaks for performance

[1] passing unsafe has no use since it is a scalar, removed it to unconfuse
[2] remove caching when pref is disabled
[3] caching userid removes the need for calling Patron->find each time
[4] subsequent changes in unit test
[5] cosmetic renames to move from session to daily basis (changed dev angle)

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
First call going thru Koha::Patron takes about 0.0150 sec.
Subsequent calls only use caching and take about 0.0006 sec.

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


More information about the Koha-bugs mailing list