Settings

Theme

A case against migration files

rcwz.pl

3 points by suralind 9 months ago · 2 comments

Reader

Etheryte 9 months ago

The main use case of migrations is that you need to migrate the data in some way as well. The schema is the easy bit. This doesn't really address data in any way as far as I can see?

  • suralindOP 9 months ago

    Author here, good point, i didn't go into data migrations. The counter point is that migration files won't work well for anything but smallest tables. If you have a relatively large table, you likely end up batching updates anyway ta avoid excessive locking.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection