performance of large delete from large tables
Hi,
Trying to improve the performance of a large delete from a number of related tables linked via cascade delete constraints and wondering what could be used to improve the performance of the operation.
Would it possibly run faster if the child table data was deleted first and then delete the parent data afterwards?
Would there be a benefit to trying to put some of the tables in memory, perhaps using the db_big_table_cache_percent_target parameter?
Here is the exection plan when running the query:
There are 3 tables in the configuration
CUSTOMERS
TRANSACTIONS
DATA_ELEMENTS
The delete statement is: