Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Server DELETE massively inflates transaction log

$
0
0

When trying to run a DELETE on a large set of data (23,416,618 records as of today) we observed twice this behaviour:

query runs for over 6 hours at which point transaction log goes over 60G in size and we stop it

DB goes into recovery mode and restores all records. It appears to be a SQL server performance problem.

Below are the sizes of referenced  tables and the actual SQL statement.

Please advise how we could rectify this?  Many thanks.

Table Name

Size in KB

Number of rows

TEST_ERROR

24842000

28,362,727

TEST_CASE_RESULT

11735128

42,129,830

BUILDRESULTSUMMARY

230704

152,975

TEST_CLASS_RESULT

10488

45,744

SQL Server version: MS SQL Server 2008 R2 Enterprise SP1.

CPU: 2

RAM: 24G

HD:

C drive, 250G, holds database and transaction log.

D drive, 300G, holds database and transaction log backup.

Current (Atlassian) "bamboo" database size is 51G, transaction log is 52Mb.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>