lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Lea" <ian....@gmail.com>
Subject Re: Spawn an indexing thread on every update
Date Fri, 12 Sep 2008 09:29:14 GMT
Hi


Why 15 mins?  Can you try lower values to get a balance between load
and freshness?



--
Ian.


On Thu, Sep 11, 2008 at 9:43 PM, nobody <dailykos@budweiser.com> wrote:
>
> Hi,
>
>  In our application, I want users to be able to search for the updates they
> make almost immediately. Hence, whenever they update, I spawn a thread
> immediately to index. However, when the load on the application is very high
> the number of threads spawned increases, and this results in "cannot create
> native thread" error.
>
> We are thinking of running the indexing thread once in every 15 mins,
> through a scheduler, and buffer all the writes till the thread runs.
> However, this will result in stale results on the search. Please advice what
> is the best approach in this regard.
>
> -thanks
> --

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message