Make query that bypasses cache

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Make query that bypasses cache

jason rutherglen-2
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.  

Reply | Threaded
Open this post in threaded view
|

Re: Make query that bypasses cache

Chris Hostetter-3

: 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