# Aggregation Cache

**URL:** <https://discuss.elastic.co/t/aggregation-cache/104453>\
**Category:** Elasticsearch\
**Created:** [October 18, 2017, 8:34pm UTC](https://discuss.elastic.co/t/aggregation-cache/104453 "2017-10-18T20:34:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serverlessPHP](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@serverlessPHP](https://discuss.elastic.co/u/serverlessPHP)\
**Post date:** [October 18, 2017, 8:34pm UTC](https://discuss.elastic.co/t/aggregation-cache/104453/1 "2017-10-18T20:34:40Z")

</div>

I want to take advantage of the query cache to speed up my very slow aggregations. According to the documentation, queries should cache the aggregations as long as query\_cache or request\_cache is set, depending on ES version. I am running on ES 1.7 but I have yet to see this cache work on any queries, evident from the long query time. What am I doing wrong? Thanks.

[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/index-modules-shard-query-cache.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/index-modules-shard-query-cache.html)  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-request-cache.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-request-cache.html)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 18, 2017, 10:28pm UTC](https://discuss.elastic.co/t/aggregation-cache/104453/2 "2017-10-18T22:28:09Z")

</div>

One of the thing you can do to improve is to switch for a 1.7 implementation to a 5.6 implementation.

So many things have changed in the meantime. You should give it a try.

1.7 is not supported anymore.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 15, 2017, 10:28pm UTC](https://discuss.elastic.co/t/aggregation-cache/104453/3 "2017-11-15T22:28:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
