Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Temp DB filling on simple update statement?

$
0
0
Hi,I have a pretty simple update statement:[code="sql"]UPDATE eligibility SET primary_plan = 0 FROM temp_eligibility e WHERE eligibility.eligibility_id = e.eligibility_id[/code]This statement is updating around 7 million rows. Problem is it is filling up my data volume (TempDB). It is eating up more than 330 Gigs of space!. Guessing it is due to the large number if indexes on this table?Is there a way I can minimize the Tempdb growth? Change isolation level maybe?

Viewing all articles
Browse latest Browse all 3145

Trending Articles