|
|
|
|
|
by Topgamer7
1387 days ago
|
|
Is there a way to have foreign keys without the index and integrity constraint. I would love to be able to keep the relational mapping at the db layer. (I almost always actually want the integrity and indedx, but I'm just curious if its possible) |
|
Then it's up to all your apps to guarantee that they fill those fields in correctly, and do the reference check when inserting or updating rows in the dependent table.
You also need to write checking programs that report foreign key errors on a timetable that suits (every minute, every hour, every day, whattever).
Report the errors to someone who understands the significance of them, and can fix them.