Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa38a1b

Browse files
committed
Add batch_size(batch_size) to __find_in_batches (Mongoid)
1 parentf0ca114 commitaa38a1b

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch/model/adapters

1 file changed

+1
-1
lines changed

‎elasticsearch-model/lib/elasticsearch/model/adapters/mongoid.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __find_in_batches(options={}, &block)
8989
scope=all
9090
scope=scope.send(named_scope)ifnamed_scope
9191
scope=query.is_a?(Proc) ?scope.class_exec(&query) :scope.where(query)ifquery
92-
scope.no_timeout.each_slice(batch_size)do |items|
92+
scope.no_timeout.batch_size(batch_size).each_slice(batch_size)do |items|
9393
yield(preprocess ?self.__send__(preprocess,items) :items)
9494
end
9595
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp