Skip to content

Commit ed471f3

Browse files
committed
DOCS-579 minor edit
1 parent 2b42f3c commit ed471f3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/reference/method/cursor.batchSize.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ cursor.batchSize()
77
.. method:: cursor.batchSize()
88

99
The :method:`batchSize() <cursor.batchSize()>` method specifies the
10-
number of documents to return in each batch of the response from
11-
the MongoDB instance. In most cases, modifying the batch size will
12-
applications since the :program:`mongo`
13-
shell and most :doc:`drivers </applications/drivers>` return results as if
14-
MongoDB returned a single batch.
10+
number of documents to return in each batch of the response from the
11+
MongoDB instance. In most cases, modifying the batch size will
12+
not affect the user or the application since the
13+
:program:`mongo` shell and most :doc:`drivers
14+
</applications/drivers>` return results as if MongoDB returned a
15+
single batch.
1516

1617
The :method:`batchSize() <cursor.batchSize()>` method takes the
1718
following parameter:
@@ -31,7 +32,7 @@ cursor.batchSize()
3132

3233
.. code-block:: javascript
3334

34-
db.animals.find().batchSize(10)
35+
db.inventory.find().batchSize(10)
3536

3637
This operation will set the batch size for the results of a query
3738
(i.e. :method:`find() <db.collection.find()>`) to ``10``. The

0 commit comments

Comments
 (0)