Bugzilla – Attachment 181996 Details for
Bug 37020
bulkmarcimport gets killed when inserting large files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37020: bulkmarcimport gets killed after update to 24.05. when inserting large files
Bug-37020-bulkmarcimport-gets-killed-after-update-.patch (text/plain), 1.60 KB, created by
Thomas Klausner
on 2025-05-06 20:38:05 UTC
(
hide
)
Description:
Bug 37020: bulkmarcimport gets killed after update to 24.05. when inserting large files
Filename:
MIME Type:
Creator:
Thomas Klausner
Created:
2025-05-06 20:38:05 UTC
Size:
1.60 KB
patch
obsolete
>From b0b773dbd49529d5395885856a97e6e07c3ea632 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Fri, 4 Apr 2025 14:46:53 +0200 >Subject: [PATCH] Bug 37020: bulkmarcimport gets killed after update to 24.05. > when inserting large files > >Include checking for invalid marc data in main loop to avoid >loading all marc data into memory at once. > >Signed-off-by: Jan Kissig <bibliothek@th-wildau.de> >Signed-off-by: Thomas Klausner <domm@plix.at> >--- > misc/migration_tools/bulkmarcimport.pl | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > >diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl >index ca4f8b2bd3..638753e589 100755 >--- a/misc/migration_tools/bulkmarcimport.pl >+++ b/misc/migration_tools/bulkmarcimport.pl >@@ -325,8 +325,7 @@ my $logger = Koha::Logger->get; > my $schema = Koha::Database->schema; > my $lint = MARC::Lint->new; > >-$schema->txn_begin; >-RECORD: while () { >+while () { > > my $record; > >@@ -476,6 +475,7 @@ RECORD: while () { > } > } > unless ($test_parameter) { >+ $schema->txn_begin; > > if ($authorities) { > my $authtypecode = GuessAuthTypeCode( $record, $heading_fields ); >@@ -726,15 +726,10 @@ RECORD: while () { > @search_engine_records = (); > } > $schema->txn_commit; >- $schema->txn_begin; > } > last if $record_number == $number || $records_exhausted; > } > >-if ( !$test_parameter ) { >- $schema->txn_commit; >-} >- > if ($fk_off) { > $dbh->do("SET FOREIGN_KEY_CHECKS = 1"); > } >-- >2.39.5
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 37020
:
176388
|
176425
|
176653
|
176921
|
180639
|
180640
|
180641
|
180644
|
180645
|
180905
|
180906
|
181463
|
181470
|
181471
|
181472
| 181996 |
181997
|
181998