-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.1.2
-
Component/s: None
-
None
-
Environment:ubuntu 14.04 LTS 64bit, php 7.1
Hi,
Firstly, thank you as always for the great library.
I have an aggregation query like the following:
function aggregateFtw() { return $this->collection->aggregate( [ [ '$group' => [ '_id' => '$user_id', 'liked_post_ids' => [ '$addToSet' => '$post_id' ] ] ] ], [ 'allowDiskUse' => true, 'batchSize' => 1000 ]); }
Does the batchSize parameter only apply to the initial batch, or also to subsequent batches? It is important for me, in order to avoid cursor timeouts, and the aggregation documentation made me a little nervous (see https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/#specify-an-initial-batch-size)
Thanks,
- is related to
-
CDRIVER-2371 mongoc_collection_aggregate only uses batchSize for first batch
- Closed
- related to
-
PHPLIB-321 batchSize option does not affect getMore behavior for change streams
- Closed
-
PHPC-1109 Support batchSize getMore option for command cursors
- Closed
- links to