-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change work_histories migration to insert via SQL
Previously, the data migration BackfillApplicationChoicesWithWorkExperiences was inserting records via ActiveRecord. This caused an incident, known as 'The Big Touch'. A lot of application choices, forms and candidates had their updated_at updated and this caused some of our APIs to be slow. We still need to run this migration in sandbox so we thought it's a good idea to change this migration to insert records via SQL avoiding any callbacks.
- Loading branch information
1 parent
a346eeb
commit 174ed50
Showing
2 changed files
with
62 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters