On 3/13/2021 11:36 AM, Karl Stoney wrote:
Apologies if this is a silly question, I just can't find anything explaining
the benefits online.
Would anyone be able to tell me why you would use a documentCache, if you have
sufficient RAM on your machine that the OS disk cache is effectively caching
all the documents anyway?
I'm pretty sure that the document cache stores uncompressed data. With
the disk cache, the decompression step would be required, using CPU
resources and taking a little bit of time. Reading from the document
cache would be faster and not hit the CPU as hard.
Since I think version 4.1, Solr (Lucene, really) writes stored fields in
compressed format.
Thanks,
Shawn