NYPL-Simplified / server_core

Shared data model and utilities for Library Simplified server applications
7 stars 11 forks source link

Split up database migration statements into groups that can be executed in parallel. #1266

Closed leonardr closed 3 years ago

leonardr commented 3 years ago

This branch reorders the SQL statements in the big timezone migration script and adds advice from Ashok Kumar, NYPL's DBA, about executing the statements in two parallelized batches to reduce the time this migration will take.

We're going to try this out in an upcoming migration, and I'm OK with holding off merging this until we see how well it works, but I wanted to keep a record of Ashok's advice in our code base for the benefit of other folks.