X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=script%2Fpublic-inbox-index;h=e2bca16e92510221a0f95998277be6351dcac6f8;hp=56df5bfec6faed0a9338c88cecf5230607dcf3a9;hb=9030233f83bc2e30f9529ea484da123ea9d98119;hpb=8a66a8d396c6cff82e6041d107d7fb842db6d602 diff --git a/script/public-inbox-index b/script/public-inbox-index index 56df5bfe..e2bca16e 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -42,11 +42,16 @@ if (defined $max_size) { die "`publicInbox.indexMaxSize=$max_size' not parsed\n"; } -if (my $bs = $opt->{batchsize} // $cfg->{lc('publicInbox.indexBatchSize')}) { +my $bs = $opt->{batchsize} // $cfg->{lc('publicInbox.indexBatchSize')}; +if (defined $bs) { PublicInbox::Admin::parse_unsigned(\$bs) or die "`publicInbox.indexBatchSize=$bs' not parsed\n"; - $PublicInbox::SearchIdx::BATCH_BYTES = $bs; } +local $PublicInbox::SearchIdx::BATCH_BYTES = $bs if defined($bs); + +# out-of-the-box builds of Xapian 1.4.x are still limited to 32-bit +# https://getting-started-with-xapian.readthedocs.io/en/latest/concepts/indexing/limitations.html +local $ENV{XAPIAN_FLUSH_THRESHOLD} ||= '4294967295' if defined($bs); my $s = $opt->{sequentialshard} // $cfg->{lc('publicInbox.indexSequentialShard')};