[Koha-bugs] [Bug 30824] Improve performance of BatchCommitItems
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 26 13:40:30 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30824
Joonas Kylmälä <joonas.kylmala at iki.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #135307|0 |1
is obsolete| |
Attachment #135308|0 |1
is obsolete| |
--- Comment #5 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
Created attachment 135369
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135369&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
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala at iki.fi>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list