# Use of Scroll with Composite Aggregation

**URL:** <https://discuss.elastic.co/t/use-of-scroll-with-composite-aggregation/187389>\
**Category:** Elasticsearch\
**Created:** [June 25, 2019, 4:49pm UTC](https://discuss.elastic.co/t/use-of-scroll-with-composite-aggregation/187389 "2019-06-25T16:49:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivendra\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivendra_singh/32/45859_2.png) [@Shivendra\_Singh](https://discuss.elastic.co/u/Shivendra_Singh)\
**Post date:** [June 25, 2019, 4:49pm UTC](https://discuss.elastic.co/t/use-of-scroll-with-composite-aggregation/187389/1 "2019-06-25T16:49:04Z")

</div>

Hi All,

Can I use Scroll with Composite Aggregation or shall I use after key for iterating the result set? I have read the scroll documentation it suggests not to use scroll for real time purpose. I have also read that Scroll is shard specific, what does it mean?

---

<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:** [July 23, 2019, 4:49pm UTC](https://discuss.elastic.co/t/use-of-scroll-with-composite-aggregation/187389/2 "2019-07-23T16:49:09Z")

</div>

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