On Thu, Feb 16, 2012 at 3:03 PM, Alexey Verkhovsky
<alexey.verkhov...@gmail.com> wrote:
>> 5. All Solr caching is switched off.
>
>> But why?
>>
>
> Because (a) I shouldn't need to cache documents, if they are all in memory
> anyway;

Your're making many assumptions about how Solr works internally.

One example of many:
  Solr streams documents (requests the stored fields right before they
are written to the response stream) to support returning any number of
documents.
If you highlight documents, the stored fields need to be retrieved
first.  When streaming those same documents later, Solr will retrieve
the stored fields again - reying on the fact that they should be
cached by the document cache since they were just used.

There are tons of examples of how things are architected to take
advantage of the caches - it pretty much never makes sense to outright
disable them.  If they take up too much memory, then just reduce the
size.

-Yonik
lucidimagination.com

Reply via email to