Skip to content

Commit

Permalink
RUBY-437
Browse files Browse the repository at this point in the history
Document batchSize better
  • Loading branch information
TylerBrock committed May 14, 2012
1 parent 6663660 commit 8a49614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def hint=(hint=nil)
# end of the query's execution.
# For details see http://www.mongodb.org/display/DOCS/How+to+do+Snapshotting+in+the+Mongo+Database
# @option opts [Boolean] :batch_size (100) the number of documents to returned by the database per
# GETMORE operation. A value of 0 will let the database server decide how many results to returns.
# GETMORE operation. A value of 0 will let the database server decide how many results to return.
# This option can be ignored for most use cases.
# @option opts [Boolean] :timeout (true) when +true+, the returned cursor will be subject to
# the normal cursor timeout behavior of the mongod process. When +false+, the returned cursor will
Expand Down
3 changes: 3 additions & 0 deletions lib/mongo/cursor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def skip(number_to_skip=nil)
#
# Note that the batch size will take effect only on queries
# where the number to be returned is greater than 100.
#
# This can not override MongoDB's limit on the amount of data it will
# return to the client. Depending on server version this can be 4-16mb.
#
# @param [Integer] size either 0 or some integer greater than 1. If 0,
# the server will determine the batch size.
Expand Down

0 comments on commit 8a49614

Please sign in to comment.