registrar updates

This commit is contained in:
Priit Tark 2015-04-30 18:54:20 +03:00
parent 308666824f
commit 37b74d2086
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ namespace :whois do
ActiveRecord::Base.uncached do
puts "\n#{@i}"
Domain.included.find_in_batches(batch_size: 10000) do |batch|
batch.map { |d| d.update_whois_record }
batch.map(&:update_whois_record)
puts(@i += 10000)
GC.start
end