|
|
|
|
|
by oedo
1385 days ago
|
|
Most (non-gigascale) applications that are non-trivial enough to use a relational database in the first place will benefit from using foreign key constraints (ie delegating enforcement of foreign key relationships to the database). Though, context can matter: system architecture, RDBMS limitations, etc. (eg IIRC, FK constraints complicate certain kinds of migrations in MySQL at scale). >He rather have a smooth data migration process than having an unexpected error and abort the whole operation That's not a good reason. It doesn't sound like he's making an educated decision based on context-- it sounds like he's sacrificing data consistency to make his own work easier.
If that's the case, perhaps he should do away with all integrity constraints (primary keys, checks, et al). Then, he could enjoy a "smooth process" for adding new data, too. No more pesky errors-- just blissful, silent corruption. >To be fair, as far as I know, he never had major data problems. Yet, anyway. He has intentionally limited his visibility over at least one kind of problem (invalid references). His problems might not be clear until they start causing noticeable issues elsewhere. >He is not the only one I've met who insisted on not having FK. I've even seen large systems prohibit using JOIN statements. Allergy to the relational model. Many such cases! |
|