Question

I have a small database which basically run a couple of reporting SPs. Data gets extracted from an OLTP database and refreshed everyday and most tables in this database get truncated everyday.

The Logic in one of the SPs is that it uses alot of update statements. I can see the transaction log grows by many GBs when it runs. The database is in simple recovery mode. So my diagnoses is that all the update statements are making it slow.

My question is that will changing the setting to delayed durability have an effect on the speed of the SP?

Was it helpful?

Solution

My question is that will changing the setting to delayed durability have an effect on the speed of the SP?

If the stored procedure makes many small updates without a transaction then delayed durability might speed it up. But batching the inserts into a larger transaction would be a better idea.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top