3 ms·
That's a great approach for the cases where the migration takes only a few seconds. When you start running into situations where the migration takes hours or da
by brianr 14y ago
That's a great approach for the cases where the migration takes only a few seconds. When you start running into situations where the migration takes hours or days, it's back to the "normal" way.
- msherry 14y agoSure, this definitely isn't the right approach for all migrations everywhere. When we have migrations that we know will take a long time, we try to make them non-invasive enough that we can have code that works with old and new schemas simultaneously. That way, the migration can take as long as it needs to, and everything Just Works™.