Hy guys,
In MongoDB documentation is stated:
cursor.batchSize(size)
Specifies the number of documents to return in each batch of the response from the MongoDB instance.
In most cases, modifying the batch size will not affect the user or the application, as the mongo shell and most drivers return results as if MongoDB returned a single batch.
and in the documentation we have:
AggregationResult the property documents has been renamed to firstBatch, to clearly indicate it returns the first batch from result (which is frequently the single one).
(the emphasis and coloring pertains to me).
My question is:
In what situation the first batch returned is the single one and in what situations it is not.
How can I control that.
Neither ReactiveMongo, nor MongoDB documentation seem to be clear on the topic.
The question is posted on SO as well.
Many thanks in advance.
Adrian.