Em wrote:
My first query is "red firefox" - all caches were turned on.
If I am searching now for "red star", does this query makes any usage from
the cache, since both share the term "red"?
I don't believe it does, no.

I understand your question -- if your caching things externally anyway, do you need caches in Solr, or is that just redundant?

The answer is kind of complicated though -- maybe, maybe not. In some cases having too small Solr caches will make your Solr performance really bad -- if you want to page through Solr results, for instance, the document cache is going to be important. In fact, if Solr can't hold enough for the _current page_ in the cache, that's going to mess up Solr even more, and even returning a single request, Solr functions that want to look at the documents are (in some cases) going to keep retreiving them over and over again, instead of getting them from the cache -- even within a single Solr request-response.

I could be wrong about some of those details, this is me kind of hand-waving because I'm not an expert at this stuff. I know just enough to try not to be dangerous (ha), meaning that I am pretty sure that you can't issue a blanket "yeah, get rid of Solr caches" in your circumstance. There are probably some caches you can make (much) smaller , but it requires kind of complicated Solr-fu to understand which those are.

You could certainly keep your caches fairly small, and see what happens, do some benchmarking.

Jonathan


Reply via email to