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 ArticleSlow 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
More Pages to Explore .....