Massive Data Flashcards
1
Q
How to update/backfill table with lots of data using others columns?
A
update all
Company.update_all(“ssif_imports.owner_id=ssif_imports.company_id, ssif_imports.owner_type=’Company’”)
How to update/backfill table with lots of data using others columns?
update all
Company.update_all(“ssif_imports.owner_id=ssif_imports.company_id, ssif_imports.owner_type=’Company’”)