Skip to content

Commit

Permalink
include a link to PyMongo docs for batch_size
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcikstefan committed Dec 5, 2016
1 parent ea90277 commit 34ba527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mongoengine/queryset/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,9 @@ def batch_size(self, size):
"""Limit the number of documents returned in a single batch (each
batch requires a round trip to the server).
See http://api.mongodb.com/python/current/api/pymongo/cursor.html#pymongo.cursor.Cursor.batch_size
for details.
:param size: desired size of each batch.
"""
queryset = self.clone()
Expand Down

0 comments on commit 34ba527

Please sign in to comment.