lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert engels <>
Subject Re: Lock-less commits
Date Mon, 21 Aug 2006 15:11:43 GMT
Then keeping the segments in memory is not helpful, as every open of  
the writer needs to traverse the directory (since another writer  
still could have created segments).

For example,

Computer A opens writer, modifies index, closes writer.
Computer B opens writer (this must read the directory)....

No reason to keep the filename/segment infos around...

On Aug 20, 2006, at 9:33 PM, Michael McCandless wrote:

> robert engels wrote:
>> I don't think you can do this. If two different writers are opened  
>> for the same indexed, you always need to read the directory since  
>> the other may have created new segments.
> This case should be OK.  You have to close one IndexWriter before  
> opening the other (only 1 writer at a time per index), so when the  
> other one is opened it would refresh it's "deletable" list.
> Mike
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message