Discussion Locked
0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have one person who contends that adding all of the foreign keys in a database will slow down the system. This will mainly be due to adds and updates. Another person says that the db is the place to add the Fkeys since someone has to enforce the issue anyways. When adding records or udpates someone has to check the validity anyways. What is the given datbase standrad for MSSQL and Oracle we use both.
2 replies
by ezann
I assume the argument is whether to enforce foreign keys at the app vs db level. I would say the "standard" is to enforce a foreign key at the DB level.
1 - It's part of what DB's do
2 - If data is modified outside of the app, the constraints will still be applied.
3 - Most commercial DB apps I have experience with use DB foreign keys.
by dpj
I concur with ezann's comments. Keep in mind that you may have multiple interfaces to a DB; ie, Web and VB. This is a lot of extra work and like ezann stated, this is the DBA's responsibility, as is the same for the DB.
-Don
This discussion is closed to new replies.
Trending Software posts
Sort by Trending
Question Unanswered
Icons, favicons and merch graphics on Squarespace: my workflow for getting
0 helpful
0 replies
Discussion
Network Printer Works for Everyone Except Me
0 helpful
10 replies
0 helpful
4 replies
Discussion
Is There any Reverse Video Search Tool
0 helpful
8 replies
Discussion
Useful software Tip or Shortcut
0 helpful
0 replies