[Koha-bugs] [Bug 28371] Improve performance of XSLTParse4Display
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 25 17:35:27 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28371
--- Comment #10 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 124087
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124087&action=edit
Bug 28371: Passpreviously fetched branches and itemtypes through and fetch all
needed AV at once
This patch updates the searchResuls code to pass through the pre-constructed
branches and itemtype lookups
to XSLTParse4Display to avoid repeating this
It also updates getAuthorisedValues4MARCSubfields to fetch the values for
mapped subfields and pass
then through to transforMarc4XSLT
Note that we currently blank invalid branches and itemtypes - I presrve this,
we should open another bug
if we want to change this behaviour
Changes are covered by tests
To test:
1 - Perform searches in OPAC and staff client that return many records
2 - Use the 'Network' tab on the browser console (opened with F12 usually) to
see the time taken
3 - Note the speed before the patch
4 - Apply patch
5 - restart all the things
6 - Note improvement in speed
**Note: The improvement is more drastic the more items per record, try adding
large numbers of items to your search results to test**
--
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