DEV Community

Discussion on: Diving into performance of Elasticsearch aggregations

Collapse
 
raoulmeyer profile image
Raoul Meyer

Glad to hear it's helpful!

For your questions:

  1. I measured the time it took in a small script, then put the results into a Google spreadsheet to make the graphs. I'm not sure if you could do something similar with Kibana, could definitely be that there is an easier way to do it.

  2. I tried two different variations of queries which both looked something like this:

{
  "query": { ... },
  "aggregations: {
    "firstAggregation": { ... },
    "secondAggregation": { ... },
    ...
  }
Enter fullscreen mode Exit fullscreen mode

I then put 1, 2, 5, 10 aggregations in one query like this, and compared it to using only a "firstAggregation" in every query and sending 1, 2, 5, 10 queries.

I hope that helps, let me know if you have any questions or if anything is still unclear!