-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Since #1951 got fixed I thought I'd play around with the query cache, by enabling caching on the index and monitoring the ES stats. Doing a few (repeated) simple visualizations, I discovered the only way to get cache hits was to use absolute times. However this isn't really much of a use case as with absolute times you probably won't be refreshing anyway as the data would remain the same (unless the end date is in the future, I guess)
Looking at the ES docs, this is expected - when using relative times the start/end time is different with every query - maybe in this case query_cache=false should be sent, otherwise the cache is being polluted? (which another program could be making use of)
Is there anyway Kibana can utilise the cache? Trouble is aggs are done with a query over multiple indices, so the start and end time is used against every index. If the start/end were only sent to the first and last index, the rest could be cached, however this would require an ES change, unless there is something I'm missing? Massive shame, as I would have though this could give a nice performance boost. Any ideas?