Fielddata cache and doc values

Hi,

We are reviewing our ElasticSearch setup & settings, here's a question on
fielddata cache and usage of doc values.

Currently we set fielddata cache to be 30% of the heap size and we've
enabled doc_values for all fields that we want to sort or aggregate (except
2 boolean fields).
As I understand, doc values are a form of on disk cache of field data. So
my questions is, by using doc values, can we reduce the memory fielddata
cache size? Say to 10%, is it a good idea?

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/914962d7-66ca-467e-bd35-fe520317dda9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi ,

Yes , definitely doc values would be a better idea.
As it is not 100% memory resident , it will give a lot better stability and
memory optimization to the system.
On the flip side, performance might go down to , say 10 to 15%.

Thanks
Vineeth

On Tue, Dec 23, 2014 at 8:47 PM, Han JU ju.han.felix@gmail.com wrote:

Hi,

We are reviewing our Elasticsearch setup & settings, here's a question on
fielddata cache and usage of doc values.

Currently we set fielddata cache to be 30% of the heap size and we've
enabled doc_values for all fields that we want to sort or aggregate (except
2 boolean fields).
As I understand, doc values are a form of on disk cache of field data. So
my questions is, by using doc values, can we reduce the memory fielddata
cache size? Say to 10%, is it a good idea?

Thanks!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/914962d7-66ca-467e-bd35-fe520317dda9%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/914962d7-66ca-467e-bd35-fe520317dda9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DXOZHcYj%2BZTGTuF%3DCmuDcvawObAxskS2N4CMBJ53RCwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.