Damiano
05/01/2020, 3:44 PMORDER BY id ASC (where id is an Integer). Are the documents inside each partition/segment sorted before the aggregation (lets suppose before processing the MAX() aggregator)? or the sorting will be done at the end? I am asking that because, obviously, the order matter in my case...if each segment is ordered i can optimize my aggregator much more. I know that i can use a timestamp like recommended by @Kishore G to understand the "order" of each document but if the documents coming in an "random" order i must deal with that and this means...more code, more checks = slower.