Skip to content

Commit faf17d1

Browse files
committed
wrap
1 parent 035d691 commit faf17d1

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

source/reference/command/find.txt

+9-4
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,16 @@ The command accepts the following fields:
132132

133133
* - ``batchSize``
134134
- non-negative integer
135-
- Optional. The maximum number of documents within each batch returned in a
136-
query result. By default, the ``find`` command has an initial batch size of ``101`` documents and a maximum size of 16 mebibytes (MiB) for each subsequent batch. This option can enforce a smaller limit than 16 MiB, but not a larger one. If you set ``batchSize`` to a limit that results in batches larger than 16 MiB, this option has no effect and the ``find`` command uses the default batch size.
135+
- Optional. The maximum number of documents within each batch returned
136+
in a query result. By default, the ``find`` command has an initial
137+
batch size of ``101`` documents and a maximum size of 16 mebibytes (MiB)
138+
for each subsequent batch. This option can enforce a smaller limit than
139+
16 MiB, but not a larger one. If you set ``batchSize`` to a limit that
140+
results in batches larger than 16 MiB, this option has no effect and
141+
the ``find`` command uses the default batch size.
137142
`
138-
A ``batchSize`` of ``0`` means that the cursor is established, but no documents
139-
are returned in the first batch.
143+
A ``batchSize`` of ``0`` means that the cursor is established,
144+
but no documents are returned in the first batch.
140145

141146
Unlike the previous wire protocol version, a batchSize of 1 for
142147
the :dbcommand:`find` command does not close the cursor.

source/reference/command/getMore.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,12 @@ The command accepts the following fields:
7575
- Optional. Specifies the maximum number of documents within each
7676
batch returned in a query result.
7777

78-
If ``batchSize`` is not set, ``getMore`` returns up to ``101`` documents in the first batch and up to 16 mebibytes (MiB) of data in all subsequent batches. If ``batchSize`` is set, ``getMore`` returns the smaller of 16 MiB of data or ``batchSize`` documents. If you set ``batchSize`` to a limit that results
79-
in batches larger than 16 MiB, this option has no effect and ``getMore`` uses the default batch size.
78+
If ``batchSize`` is not set, ``getMore`` returns up to ``101`` documents
79+
in the first batch and up to 16 mebibytes (MiB) of data in all
80+
subsequent batches. If ``batchSize`` is set, ``getMore`` returns
81+
the smaller of 16 MiB of data or ``batchSize`` documents. If you set
82+
``batchSize`` to a limit that results in batches larger than 16 MiB, this
83+
option has no effect and ``getMore`` uses the default batch size.
8084

8185
* - ``maxTimeMS``
8286
- non-negative integer

source/reference/method/cursor.batchSize.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ Definition
1919

2020
.. include:: /includes/fact-mongosh-shell-method.rst
2121

22-
Specifies the maximum number of documents within each batch returned in a query result. By default, the initial batch size is ``101`` documents and subsequent batches have a maximum size of 16 mebibytes (MiB). This option can enforce a smaller
23-
limit than 16 MiB, but not a larger one. If you set ``batchSize`` to a limit that results in batches larger than 16 MiB, this option has no effect and :method:`~cursor.batchSize()` uses the default batch size.
22+
Specifies the maximum number of documents within each batch returned in
23+
a query result. By default, the initial batch size is ``101`` documents
24+
and subsequent batches have a maximum size of 16 mebibytes (MiB). This
25+
option can enforce a smaller limit than 16 MiB, but not a larger one. If
26+
you set ``batchSize`` to a limit that results in batches larger than 16
27+
MiB, this option has no effect and :method:`~cursor.batchSize()` uses
28+
the default batch size.
2429

2530
A ``batchSize`` of ``0`` means that the cursor is established, but no documents
2631
are returned in the first batch.

source/reference/method/db.collection.watch.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,12 @@ Definition
116116

117117
- int
118118
- Optional. The maximum number of documents within each batch returned
119-
in a change stream. By default, :method:`~db.collection.watch()` has an initial batch size of ``101`` documents and a maximum size
120-
of 16 mebibytes (MiB) for each subsequent batch. This option can enforce a smaller limit than 16 MiB, but not a larger one. If you set ``batchSize`` to a limit that results in batches larger than 16 MiB, this option has no effect and :method:`~db.collection.watch()` uses the default batch size.
119+
in a change stream. By default, :method:`~db.collection.watch()` has
120+
an initial batch size of ``101`` documents and a maximum size
121+
of 16 mebibytes (MiB) for each subsequent batch. This option can
122+
enforce a smaller limit than 16 MiB, but not a larger one. If you set ``batchSize`` to a limit that results in batches larger than 16 MiB,
123+
this option has no effect and :method:`~db.collection.watch()` uses
124+
the default batch size.
121125

122126
Has the same functionality as :method:`cursor.batchSize()`.
123127

source/reference/operator/aggregation/queryStats.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,12 @@ Each document in the output array contains the following fields:
354354
* - ``key.batchSize``
355355
- String
356356
- Normalized
357-
- The :ref:`batch size <cursor-batchSize>` for the key. Batch size specifies
358-
the maximum number of documents returned within each batch from the MongoDB instance. By default, the initial batch size is ``101`` documents and subsequent batches have a maximum size of 16 mebibytes (MiB). ``batchSize`` can enforce a smaller limit than 16 MiB, but not a larger one.
357+
- The :ref:`batch size <cursor-batchSize>` for the key. Batch size
358+
specifies the maximum number of documents returned within each batch
359+
from the MongoDB instance. By default, the initial batch size is
360+
``101`` documents and subsequent batches have a maximum size of 16
361+
mebibytes (MiB). ``batchSize`` can enforce a smaller limit than 16 MiB,
362+
but not a larger one.
359363

360364
* - ``key.comment``
361365
- String

0 commit comments

Comments
 (0)