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

How to reduce time while deleting more than 300K records ?

$
0
0

Hi,

I am using SQL SEVER 2008 R2. I've a doubt, if there any possible to reduce executing time while deleting  more than 3 lakhs records. I will explain about the table structure. Table_Name : test. In that table have 15 Columns , 6 Indexes ,Foreign and Primary Key releationships. 

Query :  DELETE FROM test WHERE roleid=1      [roleid is not primary key]

Message: (308240 row(s) affected) 

Time : 28 seconds.

Cheers,

RAM BHARATH



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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