java-user@lucene.apache.org
[Top] [All Lists]

Re: Index Concurrent access

Subject: Re: Index Concurrent access
From: Michael McCandless
Date: Tue, 16 Jun 2009 05:59:36 -0400
Concurrency using multiple threads in a single JRE is perfectly fine
and strongly encouraged, since modern hardware is very concurrent.

But, concurrent access via different JREs is not supported by Lucene.
Lucene's write lock will protect the index against such cases, but if
you bypass the write lock then you will easily corrupt the index if
two writers are opened at once.

Mike

On Tue, Jun 16, 2009 at 5:21 AM, Manish Joshi<mjoshi@xxxxxxxx> wrote:
> Concurrently adding updating deleting may not be good idea.It may corrupt
> the index
> -Manish B. Joshi
>
> On Tue, Jun 16, 2009 at 2:33 PM, João Silva <galaio.silva@xxxxxxxxx> wrote:
>
>> Hi,
>> how can i access the index in a concurrently way,
>> so i can perform add/update/delete documents concurrently?
>>
>> Cheers,
>> João
>>
>> --
>> Cumprimentos,
>> João Carlos Galaio da Silva
>>
>
>
>
> --
> Manish Joshi
> Adserving Team
> Zedo India
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>