Bug 12478: Change the commit count to 5k
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 28 Aug 2015 10:07:51 +0000 (11:07 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Apr 2016 12:58:31 +0000 (09:58 -0300)
It will improve the indexing time.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

misc/search_tools/rebuild_elastic_search.pl

index 4cbecdb..4cf25b3 100755 (executable)
@@ -40,7 +40,7 @@ B<rebuild_elastic_search.pl>
 =item B<-c|--commit>=C<count>
 
 Specify how many records will be batched up before they're added to Elasticsearch.
-Higher should be faster, but will cause more RAM usage. Default is 100.
+Higher should be faster, but will cause more RAM usage. Default is 5000.
 
 =item B<-d|--delete>
 
@@ -90,7 +90,7 @@ use Pod::Usage;
 use Data::Dumper; # TODO remove
 
 my $verbose = 0;
-my $commit = 100;
+my $commit = 5000;
 my ($delete, $help, $man);
 my ($index_biblios, $index_authorities);
 my (@biblionumbers);