On 5/13/2019 2:51 AM, vishal patel wrote:
Executing an identical query again will likely satisfy the query from Solr's 
caches.  Solr won't need to talk to the actual index, and it will be REALLY 
fast.  Even a massively complex query, if it is cached, will be fast.

All caches are disabled in our schema file because of our indexing and 
searching ratio is high in our live environment.

Solr's caches are defined in solrconfig.xml, not the schema. I mention this so you can be sure you have the config you think you have.

If your caches are in fact disabled, I am betting that the index data relevant to that query is getting pushed out of your OS disk cache. When you execute the same query twice, all the data required by Lucene to execute that query is available in the OS disk cache, so the second time is quick because Lucene is pulling the information from RAM, which is MUCH faster than disk.

Fixing that usually requires adding more memory to the server.

Thanks,
Shawn

Reply via email to