mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Removed batching of log_domain records
This commit is contained in:
parent
639da20cc6
commit
ea48a1cca1
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ module Repp
|
||||||
.where('created_at >= ? AND created_at <= ?', date_from, date_to)
|
.where('created_at >= ? AND created_at <= ?', date_from, date_to)
|
||||||
registrar_counts = Hash.new(0)
|
registrar_counts = Hash.new(0)
|
||||||
processed_domains = []
|
processed_domains = []
|
||||||
domain_versions.find_each(batch_size: 1000) do |v|
|
Rails.logger.info "Processing total #{domain_versions.size} log_domain records"
|
||||||
|
domain_versions.each do |v|
|
||||||
registrar_ids = v.object_changes['registrar_id']
|
registrar_ids = v.object_changes['registrar_id']
|
||||||
next if registrar_ids.nil? || registrar_ids.empty?
|
next if registrar_ids.nil? || registrar_ids.empty?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue