[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 12:46:58 CEST 2018


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #75729|0                           |1
        is obsolete|                            |

--- Comment #46 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 75733
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75733&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.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list