diff --git a/lib/tire/model/import.rb b/lib/tire/model/import.rb index 76e6a19e..68a4769e 100644 --- a/lib/tire/model/import.rb +++ b/lib/tire/model/import.rb @@ -67,7 +67,7 @@ class Mongoid include Base def import &block items = [] - klass.all.each do |item| + klass.all.no_timeout.each do |item| items << item if items.length % options[:per_page] == 0 index.import items, options, &block