Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete of small subset on large table

Status
Not open for further replies.

rwozniak71

Programmer
Oct 1, 2004
13
US
Hello Folks,

I need to delete and reload a small subset of data (3-4,000,000 rows) from a very large table (140,000,000 rows). The large table had indexes and a partition (that cannot be truncated for this purpose).

Any advice on an approach? Most of what I found seems to take forever (cursor loop, delete statement based on selected keys) even when the delete statement uses the index. I tried subpartitioning and the hash partition put all the "sub" records in with the others.

Any advice for speed? I'm running out of options. Suggestions appreciated.

Rob
 
Could you provide us with better explanation of "reload"? Replace(update) some data by key? Is that a must to process each record separately? Can it be that your "forever" is caused by improper RBS size or some locking issue?

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top