On Monday 17 March 2008 19:38:46 Michael McCandless wrote:
> Well ... expungeDeletes() first forces a flush, at which point the
> deletions are flushed as a .del file against the just flushed
> segment.  Still, if you call expungeDeletes after every flush
> (commit) then it's only 1 segment whose deletions need to be expunged
> so it should be fast.

Now I'm calling it after every failure.  It adds about 15% time if every 
addDocument fails, but because very few documents actually fail the real 
penalty isn't too great.

I can confirm that it fixed the issue, anyway.

Daniel

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

Reply via email to