Is it recommended to run es aggregations during api calls, how expensive can it be?

there are couple of scenarios that i wanted to discuss:

  1. If we run aggregations (on large data sets) during REST API calls? How expensive it is experienced to be?

  2. If we store pre-aggregated data(which runs during insertion of data in elastic search)? and we run queries to fetch them during API calls, can this be a great solution?


Before doing option 2, I'd first check that there's actually a problem to solve.

1 is normally ok.

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