We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ca114 commit aa38a1bCopy full SHA for aa38a1b
elasticsearch-model/lib/elasticsearch/model/adapters/mongoid.rb
@@ -89,7 +89,7 @@ def __find_in_batches(options={}, &block)
89
scope = all
90
scope = scope.send(named_scope) if named_scope
91
scope = query.is_a?(Proc) ? scope.class_exec(&query) : scope.where(query) if query
92
- scope.no_timeout.each_slice(batch_size) do |items|
+ scope.no_timeout.batch_size(batch_size).each_slice(batch_size) do |items|
93
yield (preprocess ? self.__send__(preprocess, items) : items)
94
end
95
0 commit comments