# What is the best strategy to a continuously running aggregation?

**URL:** <https://discuss.elastic.co/t/what-is-the-best-strategy-to-a-continuously-running-aggregation/310113>\
**Category:** Elasticsearch\
**Created:** [July 20, 2022, 8:30am UTC](https://discuss.elastic.co/t/what-is-the-best-strategy-to-a-continuously-running-aggregation/310113 "2022-07-20T08:30:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wintercounter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wintercounter/32/108556_2.png) [@wintercounter](https://discuss.elastic.co/u/wintercounter)\
**Post date:** [July 20, 2022, 8:30am UTC](https://discuss.elastic.co/t/what-is-the-best-strategy-to-a-continuously-running-aggregation/310113/1 "2022-07-20T08:30:09Z")

</div>

I'm about to implement sorting my data by popularity. I'm creating a separate index to log views of all items. I want to sort the items by Popularity{Today,Week,Month,Year,AllTime}. For this I need a continuously running script that will aggregate the data from the view index to the data index. I'm afraid that a continuously running script will put continuous high load on the server. Are there any good strategies to avoid performance issues and make this process low priority?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 20, 2022, 10:40pm UTC](https://discuss.elastic.co/t/what-is-the-best-strategy-to-a-continuously-running-aggregation/310113/2 "2022-07-20T22:40:33Z")

</div>

Welcome to our community! 😃

> [@wintercounter](#):
>
> Are there any good strategies to avoid performance issues and make this process low priority?

There's nothing in Elasticsearch that can do that for you unfortunately. It'll accept the request made and process it with the same priority as other requests.

---

<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:** [August 17, 2022, 10:40pm UTC](https://discuss.elastic.co/t/what-is-the-best-strategy-to-a-continuously-running-aggregation/310113/3 "2022-08-17T22:40:50Z")

</div>

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