Z dokumentów.
Możesz przekazać batchSize
z AggregationOptions
w wersji Spring Mongo 2.x
Aggregation aggregation = newAggregation(unwind, group).withOptions(newAggregationOptions().cursorBatchSize(100).build());
Z domyślnym rozmiarem partii
Aggregation aggregation = newAggregation(unwind, group).withOptions(newAggregationOptions().cursor(new Document()).build());