Subject | Removing 90% of data from 200 mln record table |
---|---|
Author | k_smith_000 |
Post date | 2006-03-25T12:56:29Z |
I've a table with a large number (200 000 000) of records. I'd like to
remove ~90% of records from table that fulfill given criteria.
I know such operation can take a long time and I should backup and
restore database after operation has finished.
My question is, what is the most efficient way of performing such
operations. Should I put one delete statement into one transaction, or
divide it into few statements with seperate transactions?
Any help would be appreciated!
Kindly regards,
Kevin Smith
remove ~90% of records from table that fulfill given criteria.
I know such operation can take a long time and I should backup and
restore database after operation has finished.
My question is, what is the most efficient way of performing such
operations. Should I put one delete statement into one transaction, or
divide it into few statements with seperate transactions?
Any help would be appreciated!
Kindly regards,
Kevin Smith