]> git.koha-community.org Git - koha.git/commit
Bug 30789: Improve performance of AddBiblio
authorNick Clemens <nick@bywatersolutions.com>
Thu, 19 May 2022 19:21:27 +0000 (19:21 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 12 Jul 2022 17:34:41 +0000 (17:34 +0000)
commitce7871c3ac3328d0eeb7e6104d113edd215b3bc1
tree873e4b445af1708a47be96f0f5f277bb0d99c390
parent72732a736d93ebab2b8d2737c39145abe9d2b500
Bug 30789: Improve performance of AddBiblio

AddBiblio calls TransformMarcRecordToKoha. We are only interested in getting biblio and biblioitems info, so we can pass 'no_items' to save some field lookups

Benchmarking saw a ~75% increase in the performance of this call

To test:
1 - Stage and import some records
2 - Confirm it works the same before and after patch
3 - Add a biblio via cataloguing, confirm it works

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 24c4b408ff724bfe3dd19a46ad001188aafd4350)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Biblio.pm