Hi Adrien, thanks very much for this clarification.  I am always trying to
learn more about how Elasticsearch works, and that clarification was very
helpful.

James

On Thu, May 21, 2015 at 6:12 PM, Adrien Grand <adr...@elastic.co> wrote:

> On Thu, May 21, 2015 at 11:49 PM, James Macdonald <
> james.macdon...@geofeedia.com> wrote:
>
>> Hi, I am a little confused by your response. Are you saying that
>> query/filter caches are invalidated across all data in a shard every time
>> the refresh interval ticks over?
>>
>
> Sorry for the confusion:
>  - the query cache caches entire requests per index, and is competely
> invalidated across all data every time the refresh interval ticks over AND
> there have been changes since the last refresh
>  - the filter cache caches matching documents per segment, it is
> invalidated per segment only when a segment goes away (typically because
> it's been merged to a larger segment), which is unfrequent for large
> segments
>  - the fielddata cache caches the document->value mapping per segment and
> has the same invalidation rules as the filter cache
>
>
>> I was under the impression that all field data and caching related
>> operations were performed on a Lucene index segment level and that the
>> caches would only be invalidated for a given segment if that segment had
>> changed since the last refresh. Since most data is stored in large segments
>> that don't take fresh writes and seldom merge this would mean that most
>> caches are good for long periods of time; even if the shard is under
>> constant indexing load. Am I mistaken?
>>
>
> This is right for the fielddata and filter caches, but not for the query
> cache.
>
> --
> Adrien
>
> --
> Please update your bookmarks! We have moved to https://discuss.elastic.co/
> ---
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAjZBXouCRxNtvVmtsx%2BZK1_iymRC-7YSojULF7pSK%2Bebg%40mail.gmail.com
> <https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAjZBXouCRxNtvVmtsx%2BZK1_iymRC-7YSojULF7pSK%2Bebg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Please update your bookmarks! We have moved to https://discuss.elastic.co/
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAABsnTZtOWEF%3DRjBj_Xmt9x%2BHQdREn4vT2dFnbjRiF88oPnofA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to