Norgorn [lsunnyd...@mail.ru] wrote: > So, as we see, memory, used by first shard to group, wasn't released. > Caches are already nearly zero.
It should be one or the other: Either the memory is released or there is something in the caches. Anyway, DocValues is the way to go, so ensure that it turned on for your group field: We do grouping on indexes with 250M documents (and 200M+ unique values in the group field) without any significant memory overhead, using DocValues. Caveat: If you ask for very large result sets, the memory usage will be high. But only temporarily. - Toke Eskildsen