I scroll through the entire index by scrolling by 10000 for file output.
But at this time, I have difficulty setting the timeout time. I can not predict how long it will take.
If i give it a long time (scroll = 1m), the memory pops up.
For example, elasticsearch with 2Gb memory can not scroll the 10Gb index.
Is there any way to discard the past content as I scroll?