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

How to expedite delete operation

$
0
0

I have a table format with XML data in varchar max type column, what i am doing is performing a archiving operation for that i need to delete some rows based on date condition daily.

but it took too much time to delete data even if i process them in batches to delete. can anyone suggest me to expedite my delete operation. i am putting only a column date condition while deleting.

table format is as below, batching is not helping even indexing the date column with non-clustered.

NameTypeLengthNullable
Idint4no
Anvarchar-1yes
Bnvarchar-1yes
Cnvarchar300yes
Dint4yes
Envarchar100yes
Fdatetime8yes
Gdatetime8yes

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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