# Query a large data with Aggregations

**URL:** <https://discuss.elastic.co/t/query-a-large-data-with-aggregations/84362>\
**Category:** Elasticsearch\
**Created:** [May 3, 2017, 7:35am UTC](https://discuss.elastic.co/t/query-a-large-data-with-aggregations/84362 "2017-05-03T07:35:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vcgoyo](https://avatars.discourse-cdn.com/v4/letter/v/e19adc/32.png) [@Vcgoyo](https://discuss.elastic.co/u/Vcgoyo)\
**Post date:** [May 3, 2017, 7:35am UTC](https://discuss.elastic.co/t/query-a-large-data-with-aggregations/84362/1 "2017-05-03T07:35:52Z")

</div>

I want to use scoll API and sliced , I original use multi-threaded to imporive improve efficiency,but when I debug,I find that every sliced just return there own Aggregations result,so how can I get the total Aggregations result, only do it by coding by myself after add all slices Aggregations result to a collections?

---

<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:** [May 31, 2017, 7:48am UTC](https://discuss.elastic.co/t/query-a-large-data-with-aggregations/84362/2 "2017-05-31T07:48:25Z")

</div>

Closed on May 31, 2017, 7:48am UTC

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