Understanding doc_values?

It is perfectly fine to have some fields that have doc values and other
fields that don't.

Doc values are indeed faster in 1.4, especially on numeric fields. Using
doc values doesn't change the memory usage of aggregations. However, it
will change the memory usage for field data. It's a bit tricky to track
today because doc values are not accounted in "fielddata" but in the
"segments"[1] memory usage.

[1]

On Thu, Oct 9, 2014 at 2:13 PM, Michaël Gallego michael@maestrooo.com
wrote:

Hi again,

I've tried to create two types and fill them with data that mimic my own
data, both with doc_values for all non-analyzed string and numeric fields
and without doc_values. My additional question is to know if there are some
overhead of mixing both doc_values and non-doc values inside the same
document, or it does not matter?

On my small machine and Elasticsearch 1.3, doc_values is approximately 25%
slower, if 1.4 makes this much better, I think I'll use them. However, the
question is: how can I actually benchmark this? I didn't find any way to
profile my aggregation queries to see things like memory consumption taken
by one query. Without this information, how can I know some important
metrics that would help me to choose between doc_values and without
doc_values?

Thanks a lot!

--
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/fee91837-0f29-4268-9391-c3581ce4b70b%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/fee91837-0f29-4268-9391-c3581ce4b70b%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j5EM1bjd1FZgaGN_NqR6xRSHOw35AFSwgq1q4JiGbEx%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.