# Parallel queries to partitions in Elasticsearch aggregations

**URL:** <https://discuss.elastic.co/t/parallel-queries-to-partitions-in-elasticsearch-aggregations/263122>\
**Category:** Elasticsearch\
**Created:** [February 3, 2021, 12:58pm UTC](https://discuss.elastic.co/t/parallel-queries-to-partitions-in-elasticsearch-aggregations/263122 "2021-02-03T12:58:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [February 3, 2021, 12:58pm UTC](https://discuss.elastic.co/t/parallel-queries-to-partitions-in-elasticsearch-aggregations/263122/1 "2021-02-03T12:58:40Z")

</div>

If I have a partitioned terms aggregation, say with 20 partitions. If I request for all the 20 partitions by sending 20 requests at the same time using the REST API, will the result be fetched faster or would it still take the same amount of time?

Does this sort of usage affect Elasticsearch performance in any way?

Details of the query in case it is relevant.

> [@Elasticsearch python async client multiple requests](https://discuss.elastic.co/t/elasticsearch-python-async-client-multiple-requests/262460):
>
> Hi, I was trying to use the Elasticsearch python client to make async queries to Elasticsearch. I'm trying to run aggs, and have a few partitions that I want to fetch results from. Here is my query: { 'query': { 'bool': { 'filter': [{ 'range': { '@timestamp': { 'gte': 'now-1d', 'lte': 'now' } } }, { 'bool': { 'must\_not': [{ 'terms': { 'src.ip': ['10.x.x.x'] } }] } }], 'must': [{ 'terms': { 'event.id.keyw…

---

<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:** [March 3, 2021, 12:59pm UTC](https://discuss.elastic.co/t/parallel-queries-to-partitions-in-elasticsearch-aggregations/263122/2 "2021-03-03T12:59:04Z")

</div>

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