Method: Mongo::Cursor#batch_size
- Defined in:
- lib/jmongo/cursor.rb
#batch_size(size = nil) ⇒ Object
171 172 173 174 175 |
# File 'lib/jmongo/cursor.rb', line 171 def batch_size(size=nil) _batch_size(size) @j_cursor = @j_cursor.batchSize(@batch_size) if @batch_size self end |