Skip to content

Commit ae451ed

Browse files
DOCSP-47836 clarify batchsize description (#96) (#100)
* change batchsize description * nr feedback * fix wrapping * wrapping * Empty-Commit * tech feedback (cherry picked from commit 0861f21) Co-authored-by: shuangela <[email protected]>
1 parent faa659c commit ae451ed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/read/change-streams.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ of the watch functions:
147147
- Description
148148

149149
* - ``batchSize``
150-
- | Sets the number of documents to return per batch.
151-
150+
- | The maximum number of documents that a change stream can
151+
return in each batch, which applies to the watch function.
152+
By default, watch functions have an initial batch size of ``101``
153+
documents and a maximum size of 16 mebibytes (MiB) for each subsequent
154+
batch. This option can enforce a smaller limit than 16 MiB, but not a
155+
larger one. For details, see :manual:`Cursor Batches </tutorial/iterate-a-cursor/#std-label-cursor-batches>`
156+
in the {+mdb-server+} manual.
152157

153158
* - ``comment``
154159
- | Specifies a comment to attach to the operation.

0 commit comments

Comments
 (0)