lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Why Lucene takes longer time for the first query and less for subsequent ones
Date Tue, 17 Nov 2009 20:28:38 GMT
The "usual" recommendation is just to fire up a series of warmup
queries at startup if you really require the first queries to be fast.

Best
Erick

On Tue, Nov 17, 2009 at 2:43 PM, Scott Ribe <scott_ribe@killerbytes.com>wrote:

> > Most likely due to the operating system caching the relevant portions of
> the
> > index after the first set of queries.
>
> I have enough RAM to keep the Lucene indexes in memory all the time, so I
> "dd ... > /dev/null" the files at boot. And also perform a single query to
> force JIT of the query code. Then first queries are fast.
>
> --
> Scott Ribe
> scott_ribe@killerbytes.com
> http://www.killerbytes.com/
> (303) 722-0567 voice
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message