Bug 24027: Add POD about the new parameter in Koha::Item->store
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 8 Apr 2020 14:11:54 +0000 (16:11 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 14 Apr 2020 07:15:19 +0000 (08:15 +0100)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/Item.pm

index a6ad7c6..9e1bca4 100644 (file)
@@ -58,6 +58,16 @@ Koha::Item - Koha Item object class
 
 =head3 store
 
+    $item->store;
+
+$params can take an optional 'skip_modzebra_update' parameter.
+If set, the reindexation process will not happen (ModZebra not called)
+
+NOTE: This is a temporary fix to answer a performance issue when lot of items
+are added (or modified) at the same time.
+The correct way to fix this is to make the ES reindexation process async.
+You should not turn it on if you do not understand what it is doing exactly.
+
 =cut
 
 sub store {