Hacker News new | past | comments | ask | show | jobs | submit login

> Your coworkers argument about FKs making data migrations difficult is one of them.

Got any arguments to back up this bald assertion?

In particular, I'd love to hear more about how to manage schema migrations on large tables with FK's without incurring lengthy locks or downtime.

Betting the answer is going to involve some variation on "well, don't do that" which is when I'll rest my case.




There are tools for live migrations for most popular databases. Also a lot of Postgres DDL is very fast and/or capable of happening live.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: