C
cyndire
I have some code in C# to delete a table with many children tables, so
I am doing a cascade delete. I put it into a transaction (using
TransactionOption.Required)so if anything blows everything is rolled
back. The problem is, it takes like 20 seconds to execute. If I
disable the transaction, the code runs in about 7 seconds. Why does
this happen, and is there any way I can speed up the transaction?
I am doing a cascade delete. I put it into a transaction (using
TransactionOption.Required)so if anything blows everything is rolled
back. The problem is, it takes like 20 seconds to execute. If I
disable the transaction, the code runs in about 7 seconds. Why does
this happen, and is there any way I can speed up the transaction?