Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This decision makes sense from the perspective of the person who owns doing database migrations, or who owns the performance of the database.

However, the other 99% of the engineers in the company end up dealing with the fallout of not having FKs -- more bugs, and slower development velocity.

One alternative is to have FKs in smaller, sharded databases, where you don't have to migrate between shards. For example, all the database rows related to one repo could be co-located in a shared with strong FKs between them.



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

Search: