]> Sergey Matveev's repositories - public-inbox.git/commit
index: max out XAPIAN_FLUSH_THRESHOLD if using --batch-size
authorEric Wong <e@yhbt.net>
Fri, 7 Aug 2020 10:52:16 +0000 (10:52 +0000)
committerEric Wong <e@yhbt.net>
Fri, 7 Aug 2020 23:46:13 +0000 (23:46 +0000)
commit9030233f83bc2e30f9529ea484da123ea9d98119
treedded614092ac9042509add800d916b999df51e84
parent8a66a8d396c6cff82e6041d107d7fb842db6d602
index: max out XAPIAN_FLUSH_THRESHOLD if using --batch-size

If XAPIAN_FLUSH_THRESHOLD is unset, Xapian will default to
10000.  That limits the effectiveness of users specifying
extremely large values of --batch-size.

While we're at it, localize the changes to globals since -index
may be eval-ed in tests (and perhaps production code in the
future).
script/public-inbox-index