Search code examples
solrsolrcloud

Why my repeated solr query has different qtime?


I have a solr cloud setup, I fire a simple query in a loop. The number and type of documents and query never changes but the qtime and corresponding request time varies from 6 ms to 1000+ ms in the same loop. What could be causing this?


Solution

  • This is because of caching. When you start the service not all kind of caches will be loaded into the memory(which is dependent on auto warmup).

    The query time is also dependent on the load on the server machine. If GC is running on the service because of other activities, then the queryTime again varies.