[Koha-bugs] [Bug 28371] Improve performance of XSLTParse4Display

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 4 17:50:12 CEST 2022


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

--- Comment #25 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 132944
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132944&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**

Signed-off-by: Owen Leonard <oleonard at myacpl.org>

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


More information about the Koha-bugs mailing list