Tuesday, May 14, 2019

New top story on Hacker News: Ask HN: What's your preferred way of ensuring complex database integrity?

Ask HN: What's your preferred way of ensuring complex database integrity?
7 by Hex08 | 0 comments on Hacker News.
What I mean really is: when working with relational databases, and you have complex constraints to ensure (not trivial things like notnull but something like: "two tables away" uniqueness, etc..), do you like filling it with tricks using PKs/FKs/UNIQUEs to ensure integrity or do you prefer writing some code that will get executed as you application boots up, that ensures that all the more complex requirements are met?

0 comments: