[Koha-bugs] [Bug 29454] Stash branches and itemtypes in plugin objects to reduce DB calls
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 11 00:04:34 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29454
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #127515|0 |1
is obsolete| |
--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 127520
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127520&action=edit
Bug 29454: Add local cache to Template Plugins for branches and itemtypes
This patch simply stores the branches an itemtypes in a hash for lookup.
This improves efficiency on pages where we are loading many items
To test:
1 - Add ~1000 items to a record
2 - Note load time
3 - Apply patch
4 - Reload and note faster load
5 - Edit a branchname/itemtype description
6 - Reload page
7 - Confirm the updated name is reflected in display
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list