File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,9 @@ ref: watch-option-batchSize
2
2
content : |
3
3
The maximum number of documents within each batch returned in a query result, which applies
4
4
to the ``aggregate`` command. By default, the ``aggregate`` command has an initial batch size of
5
- ``101`` documents and a maximum size of 16 mebibytes for each subsequent batch. This
6
- option can enforce a smaller limit than 16 mebibytes, but not a larger
7
- one. If you set ``batchSize`` to a limit that results in batches larger than
8
- 16 MiB, this option has no effect.
9
-
10
- This command determines the maximum number of change events to return in each response from the
11
- server.
5
+ ``101`` documents and a maximum size of 16 mebibytes (MiB) for each subsequent batch. This
6
+ option can enforce a smaller limit than 16 MiB, but not a larger one. If you set ``batchSize``
7
+ to a limit that results in batches larger than 16 MiB, this option has no effect.
12
8
---
13
9
ref : watch-option-fullDocument
14
10
content : |
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ you can set in the array:
182
182
* - ``batchSize``
183
183
- | The maximum number of documents within each batch returned in a query result. By default,
184
184
the ``find()`` method has an initial batch size of ``101`` documents
185
- and a maximum size of 16 mebibytes for each subsequent batch. This
186
- option can enforce a smaller limit than 16 mebibytes , but not a larger
185
+ and a maximum size of 16 mebibytes (MiB) for each subsequent batch. This
186
+ option can enforce a smaller limit than 16 MiB , but not a larger
187
187
one. If you set ``batchSize`` to a limit that results in batches larger than
188
188
16 MiB, this option has no effect.
189
189
| **Type**: ``integer``
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ Parameters
54
54
- integer
55
55
- The maximum number of documents to return in the first batch. By default, the ``find()``
56
56
command has an initial batch size of ``101`` documents. This
57
- option can enforce a smaller limit than 16 mebibytes, but not a larger
57
+ option can enforce a smaller limit than 16 mebibytes (MiB) , but not a larger
58
58
one. If you set ``batchSize`` to a limit that results in batches larger than
59
59
16 MiB, this option has no effect.
60
60
61
61
A batchSize of ``0`` means that the cursor will be established, but no documents
62
62
will be returned in the first batch. This may be useful for quickly returning a cursor
63
- or failure from ``aggregate`` without doing significant server-side work.
63
+ or failure without doing significant server-side work.
64
64
65
65
Unlike the previous wire protocol version, a batchSize of ``1`` for the
66
66
:dbcommand:`find` command does not close the cursor.
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ Parameters
56
56
- integer
57
57
- The maximum number of documents within each batch returned in a query result.
58
58
By default, the ``aggregate`` command has an initial batch size of
59
- ``101`` documents and a maximum size of 16 mebibytes for each subsequent batch. This
60
- option can enforce a smaller limit than 16 mebibytes , but not a larger
59
+ ``101`` documents and a maximum size of 16 mebibytes (MiB) for each subsequent batch. This
60
+ option can enforce a smaller limit than 16 MiB , but not a larger
61
61
one. If you set ``batchSize`` to a limit that results in batches larger than
62
62
16 MiB, this option has no effect.
63
63
You can’t perform that action at this time.
0 commit comments