Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Allow import(query) to take longer than 10 min. #785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tire/model/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down