Skip to content

DOCS-579 minor edit #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions source/reference/method/cursor.batchSize.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ cursor.batchSize()
.. method:: cursor.batchSize()

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

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

.. code-block:: javascript

db.animals.find().batchSize(10)
db.inventory.find().batchSize(10)

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