[Koha-bugs] [Bug 30789] Improve performance of AddBiblio

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 17 14:41:25 CEST 2022


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135071
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135071&action=edit
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

Additionally we can pass the subfield structure we have already fetched into
the subroutine
TransformMarcToKohaOneField

Testing with NYTProf I saw a reduction of ~6 seconds when importing ~400 bibs
and ~1000 items
i.e. I exported and imported the sample data (after removing duplicate 010 from
record 72)

To test:
1 - Stage and import some records
2 - Confirm it works the same before and after patch

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


More information about the Koha-bugs mailing list