File tree
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed elasticsearch-model/lib/elasticsearch/model/adapters
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -89,7 +89,7 @@ def __find_in_batches(options={}, &block)
|
89 | 89 | scope = all
|
90 | 90 | scope = scope.send(named_scope) if named_scope
|
91 | 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| |
| 92 | +scope.no_timeout.batch_size(batch_size).each_slice(batch_size) do |items| |
93 | 93 | yield (preprocess ? self.__send__(preprocess, items) : items)
|
94 | 94 | end
|
95 | 95 | end
|
|
You can’t perform that action at this time.
0 commit comments