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

At work, we use foreign key constraints when it makes sense, that is over 50% of all cases considered. The factors considered are risk and performance: what is the risk of bad data to get in the tables and what is the impact of that happens vs the cost of extra processing time or extra hardware to compensate.



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

Search: