[Koha-bugs] [Bug 30824] Improve performance of BatchCommitItems

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 20 16:36:04 CEST 2022


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135247
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135247&action=edit
Bug 30824: Improve performance of BatchCommitItems

This makes two simple changes:
- Limit TransformMarcToKoha to the fields we need
- Pass forward the biblioitemnumber when adding items to a new biblionumber

Profiling with NYTProf I saved ~8-9 seconds importing around 400 bibs/1000
items

Reducing calls in item store to use a passed biblionumber was the largest gain.

To test:
1 - Import some records and items
2 - Verify values etc., revert
3 - Apply patch
4 - Import again
5 - Verify values etc. same as before

-- 
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