Quantcast
Channel: Slow delete caused by many foreign keys - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by druzin for Slow delete caused by many foreign keys

Make sure that there are indexes on the constrained columns, since the dbms will do a lookup using those columns in the referencing tables.You can try using this script, it generates an index creation...

View Article



Slow delete caused by many foreign keys

My DB has about 90 tables. Most of the tables have an UpdatedBy and AddedBy column that have foreign keys pointing back to the user table. With even moderate amounts of data spread throughout the...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images