# Sorted scrolls and cache

**URL:** <https://discuss.elastic.co/t/sorted-scrolls-and-cache/235057>\
**Category:** Elasticsearch\
**Created:** [May 31, 2020, 9:58am UTC](https://discuss.elastic.co/t/sorted-scrolls-and-cache/235057 "2020-05-31T09:58:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlioz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mlioz/32/45072_2.png) [@mlioz](https://discuss.elastic.co/u/mlioz)\
**Post date:** [May 31, 2020, 9:58am UTC](https://discuss.elastic.co/t/sorted-scrolls-and-cache/235057/1 "2020-05-31T09:58:35Z")

</div>

Hi,

I'm trying to understand how sorted scrolls work.  
After reading [https://discuss.elastic.co/t/sorted-scroll-internal-workings-for-performance-optimizations/23866](http://this) I understand that some scrolls are stored in cache for the sorted scroll to be performed. However I want to clear previous scrolls that I have already visited to improve overall performance. will this cause problems with the sort?

Thanks.

---

<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:** [June 28, 2020, 9:58am UTC](https://discuss.elastic.co/t/sorted-scrolls-and-cache/235057/2 "2020-06-28T09:58:35Z")

</div>

Closed on June 28, 2020, 9:58am UTC

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