From 824b676de7b0a6b288c1dea31ad839c662b17893 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 24 May 2022 15:29:04 +0100 Subject: [PATCH] Bug 30824: (follow-up) POD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joonas Kylmälä Signed-off-by: Tomas Cohen Arazi --- C4/Items.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index d358675513..301fb51ebe 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -141,14 +141,18 @@ sub CartToShelf { Given a MARC::Record object containing an embedded item record and a biblionumber, create a new item record. -The final optional parameter, C<$params>, expected to contain +The final optional parameter, C<$params>, may contain 'skip_record_index' key, which relayed down to Koha::Item/store, there it prevents calling of index_records, which takes most of the time in batch adds/deletes: index_records to be called later in C after the whole loop. +You may also optionally pass biblioitemnumber in the params hash to +boost performance of inserts by preventing a lookup in Koha::Item. + $params: skip_record_index => 1|0 + biblioitemnumber => $biblioitemnumber =cut -- 2.39.5