Large results sets and paging for Aggregations

Sharing a response I received from Igor Motov:

"scroll works only to page results. paging aggs doesn't make sense since

aggs are executed on the entire result set. therefore if it managed to fit
into the memory you should just get it. paging will mean that you throw
away a lot of results that were already calculated. the only way to "page"
is by limiting the results that you are running aggs on. for example if
your data is sorted by date and you want to build histogram for the results
one date range at a time."

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0ae54bc1-7059-4ae7-a979-191a64d068fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.