Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

adding documents while optimizing?

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


v.sevel at lombardodier

Nov 19, 2009, 2:42 AM

Post #1 of 2 (375 views)
Permalink
adding documents while optimizing?

Hi,

is this a good idea/possible to continue writing events to an index while
optimizing it, in 2 differents threads, in the same process, using the same
writer?

thanks,
vince
--
View this message in context: http://old.nabble.com/adding-documents-while-optimizing--tp26421269p26421269.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


lucene at mikemccandless

Nov 19, 2009, 4:55 AM

Post #2 of 2 (345 views)
Permalink
Re: adding documents while optimizing? [In reply to]

It's fine to do so, and you should see good concurrency (and if you
don't, please report back!).

But, note that the semantics of optimize() is that it only ensures
those segments present when the call started are the ones that will be
merged down to one.

Any newly created segments (eg flushing the docs you're adding) will
not be optimized away.

Mike

On Thu, Nov 19, 2009 at 5:42 AM, vsevel <v.sevel [at] lombardodier> wrote:
>
> Hi,
>
> is this a good idea/possible to continue writing events to an index while
> optimizing it, in 2 differents threads, in the same process, using the same
> writer?
>
> thanks,
> vince
> --
> View this message in context: http://old.nabble.com/adding-documents-while-optimizing--tp26421269p26421269.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.