8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66fe71 commit ef8985eCopy full SHA for ef8985e
elasticsearch-model/lib/elasticsearch/model/adapters/mongoid.rb
@@ -89,7 +89,7 @@ def __find_in_batches(options={}, &block)
89
scope = scope.send(named_scope) if named_scope
90
scope = query.is_a?(Proc) ? scope.class_exec(&query) : scope.where(query) if query
91
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