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.
Name | Type | Length | Nullable |
Id | int | 4 | no |
A | nvarchar | -1 | yes |
B | nvarchar | -1 | yes |
C | nvarchar | 300 | yes |
D | int | 4 | yes |
E | nvarchar | 100 | yes |
F | datetime | 8 | yes |
G | datetime | 8 | yes |