mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Story#108602614 - optimize contacts history import
This commit is contained in:
parent
1fb0259806
commit
795befb025
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ namespace :import do
|
|||
|
||||
desc 'Import contact history'
|
||||
task history_contacts: :environment do
|
||||
Legacy::ContactHistory.uniq.where("id > 4175").pluck(:id).each do |legacy_contact_id|
|
||||
Legacy::ContactHistory.uniq.pluck(:id).each do |legacy_contact_id|
|
||||
start = Time.now.to_f
|
||||
Contact.transaction do
|
||||
data = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue