Disabling Vs Dropping constraints
574641Apr 8 2010 — edited Apr 8 2010Folks,
Never found a good documentation which explains the below queries I have. Could you answer them?
1. Why is it good to not having a foreign key constraint between two tables, when a delete operation is happening? my DBA told me to drop the foreign key constraints, then delete from child and parent tables and then create the Fkey constraints again. I think this is to enhance performance? How does this enhance performance?
2. What is the difference between Disbale/Enable VS Drop/Recreate constraints when it comes to performance? Which is better?
Thanks,
Saff