# Max size of scroll window?

**URL:** <https://discuss.elastic.co/t/max-size-of-scroll-window/104645>\
**Category:** Elasticsearch\
**Created:** [October 20, 2017, 4:16am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645 "2017-10-20T04:16:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illidan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/illidan/32/54264_2.png) [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Post date:** [October 20, 2017, 4:16am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/1 "2017-10-20T04:16:53Z")

</div>

I need to get all documents from index, so for that I using scroll to get all documents in bulks. Since my goal is to perform as less round-trips to elastic as possible, I want bulk size as big as possible.

What is the maximal size of scroll window? Sorry, can't find this number in documentation...

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [October 20, 2017, 6:44am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/2 "2017-10-20T06:44:01Z")

</div>

set in elasticsearch.yml file , this about use elasticsearch-head tools need settings.  
`index.max_result_window: 10000`

---

<div class="post-metadata">

**Author:** ![Illidan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/illidan/32/54264_2.png) [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Post date:** [October 20, 2017, 6:59am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/3 "2017-10-20T06:59:00Z")

</div>

Thanks! And what is the default?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [October 20, 2017, 7:02am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/4 "2017-10-20T07:02:53Z")

</div>

it default about 10000 as i know

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2017, 7:19am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/5 "2017-10-20T07:19:49Z")

</div>

Sure you can modify the default maximum value but I hope you understand the consequence of it and the memory pressure this is going to add on your nodes as nodes will have to send more data to the coordinating node which will have to hold that in memory.

I'd recommend doing tests of this solution.

It's a tradeoff between round-trips and memory usage.

---

<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:** [November 17, 2017, 7:20am UTC](https://discuss.elastic.co/t/max-size-of-scroll-window/104645/6 "2017-11-17T07:20:19Z")

</div>

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