Bugzilla – Attachment 135238 Details for
Bug 30789
Improve performance of AddBiblio when importing records with many items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30789: Improve performance of AddBiblio
Bug-30789-Improve-performance-of-AddBiblio.patch (text/plain), 1.19 KB, created by
Martin Renvoize (ashimema)
on 2022-05-20 10:56:29 UTC
(
hide
)
Description:
Bug 30789: Improve performance of AddBiblio
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-20 10:56:29 UTC
Size:
1.19 KB
patch
obsolete
>From 6c7c03788cfe2b52ec55b6981fc3976395f84574 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 19 May 2022 19:21:27 +0000 >Subject: [PATCH] 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> >--- > C4/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 459a94510a..d1c5d76cee 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -220,7 +220,7 @@ sub AddBiblio { > > # transform the data into koha-table style data > SetUTF8Flag($record); >- my $olddata = TransformMarcToKoha( $record, $frameworkcode ); >+ my $olddata = TransformMarcToKoha( $record, $frameworkcode, 'no_items' ); > > my $biblio = Koha::Biblio->new( > { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30789
:
135071
|
135216
| 135238