by morganpyne · 14y ago · 0 comments
The Percona pt-online-schema-change tool goes to great lengths to avoid this kind of problem.
I'd wager that a lot of the big professional rails deployments are doing FK constraints though.
This is because those projects typically sit on databases that are only expected to be accessed via web API and not directly from some other source.
Which is basically the Rails philosophy. Only let the app talk to the DB, and let the only outside interface to the DB be through the ORM that has to do most of the data validations anyway.