Antoine Baudoux wrote:
>     From what I have seen in the patch, It re-opens the segments tha
> have changed.
> 
>     So Imagine I always change the biggest sement (because that's where
> most docs are and i need to update them frequently) . Will there still
> be a benefit of IndexReader.reopen()?
> 

Yes, because the patch also improves how segments that have changed are
loaded. If documents were deleted from a segment since it was
(re)opened, then IndexReader.reopen() will only load the deleted docs
file from the disk, and won't load the other data structures again, like
the dictionary, that haven't changed.

There are actually some performance numbers in LUCENE-743. The index
size in these experiments was 4.5M docs in a single segment. In a loop
random docs were deleted and the IndexReader was reopened afterwards.
Compared to closing/opening the reader, reopen() was ~47 times faster.

It's likely that the improvement will be a little smaller in the final
version of the patch due to some changes that I have to make, but it
should still be significant.

- Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to