# Aggregations after upgrading to ES 7 - request slowed down

**URL:** <https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992>\
**Category:** Elasticsearch\
**Created:** [March 25, 2020, 1:54pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992 "2020-03-25T13:54:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![egoMojKolego](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@egoMojKolego](https://discuss.elastic.co/u/egoMojKolego)\
**Post date:** [March 25, 2020, 1:54pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/1 "2020-03-25T13:54:59Z")

</div>

Hi all,

in our app, we updated version of ES from 6 to 7.

Everything is working fine as it was but I spot one issue.

Previously when we retrive aggregations for 200k of medias, it took 10-15 sec, right now same request takes 80-90 sec.  
When I make same request but without aggregatiosn it takes \<1sec.

I don't know if it's a good place to ask such question, but currently I am clueless and any idea or tip will be very appreciated

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 29, 2020, 2:14pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/2 "2020-03-29T14:14:12Z")

</div>

Have you made any changes in mappings or data between versions 6 and 7? Do they hold exactly the same data? Are they deployed on exactly the same hardware? Are the requests the same?

---

<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:** [March 29, 2020, 2:42pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/3 "2020-03-29T14:42:33Z")

</div>

Which exact elasticsearch version are you using ?

---

<div class="post-metadata">

**Author:** ![egoMojKolego](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@egoMojKolego](https://discuss.elastic.co/u/egoMojKolego)\
**Post date:** [March 30, 2020, 8:43am UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/4 "2020-03-30T08:43:37Z")

</div>

@Christian_Dahlqvist  
architecture, medias, requests are the same.  
@dadoonet  
ES 7.6.1

I found that only one aggregation cause problem. We have aggregation which uses rangeFilter, and as I see in ES 7 rangeFilter has been changed. I need to investigate what is uneffective in this aggregation. After turning off this one agg, request instead of 11 sec goes 0,7 sec.

---

<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:** [March 30, 2020, 12:59pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/5 "2020-03-30T12:59:20Z")

</div>

Could you share it?

---

<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:** [April 27, 2020, 12:59pm UTC](https://discuss.elastic.co/t/aggregations-after-upgrading-to-es-7-request-slowed-down/224992/6 "2020-04-27T12:59:26Z")

</div>

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