You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by jason rutherglen <ja...@yahoo.com> on 2006/05/12 01:40:09 UTC

Make query that bypasses cache

Can this be done today with a simple HTTP parameter to the /select?  Mainly for testing to see how long a query takes without using the cache.  


Re: Make query that bypasses cache

Posted by Chris Hostetter <ho...@fucit.org>.
: Can this be done today with a simple HTTP parameter to the /select?
: Mainly for testing to see how long a query takes without using the
: cache.

if your goal is to test the performance of a set of queries against your
current index (and against the solr code base) then the best way to do
that would probably be to disable the caches in the solrconfig.xml.

But no, there's no query option on the StandardRequestHandler that forces
it to use non caching methods.

Keep in mind though: even if you disable all of Solr's caching mechanism,
things like your filesystem cache, and Lucene internal stuff (like the
built in FieldCaches for sorting and the way Lucene caches ever Nth term
so it can Enumerate terms wquickly) will still be used.

Personally: i think the more itneresting performance tests are of the
system recieving a steady strem of realizstic queries (ideally from
playing back log files), with the caches in place -- that will let
you see what your cache hit rate is like and wether or not they are really
helping.  You can send commits on a regular basis to simulate updates, or
if you really want to force the server to work hard, send optimize
commands over and over to really stress test it.


-Hoss