To publish this page, Elasticsearch must extract all previous pages, just to drop them at the end. Searching with is from: 1000, size: 100equivalent to searching using from: 0, size: 100100, only you get only the last 100 results. It also means that every document must be jammed, which is a potentially expensive operation.
There has been a recent optimization that should improve performance in cases where you use search scroll , see this is github problem .
source
share