default batch size should always be 0
This commit is contained in:
parent
713cf73b3d
commit
edd8a7104f
|
@ -24,8 +24,6 @@ module Mongo
|
|||
OP_QUERY_TAILABLE = 2
|
||||
OP_QUERY_SLAVE_OK = 4
|
||||
OP_QUERY_NO_CURSOR_TIMEOUT = 16
|
||||
|
||||
DEFAULT_BATCH_SIZE = 100
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -50,7 +50,7 @@ module Mongo
|
|||
@explain = options[:explain]
|
||||
@socket = options[:socket]
|
||||
@tailable = options[:tailable] || false
|
||||
@batch_size = options[:batch_size] || Mongo::Constants::DEFAULT_BATCH_SIZE
|
||||
@batch_size = options[:batch_size] || 0
|
||||
|
||||
@full_collection_name = "#{@collection.db.name}.#{@collection.name}"
|
||||
@cache = []
|
||||
|
|
Loading…
Reference in New Issue