NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: Observed (Score:1)
If performance is very important, you could perhaps consider these things:
Why first select and then delete? Is there a client-side decision whether a row should stay or go? It's probably more efficient to do it in the delete where clause.
Delete in parallel from many processes. Oracle can probably handle more load than serialized deletes. At least it can do somehting useful du
Re: Observed (Score:2)
If most rows should go, it may be faster to copy the remaining rows to another table and rename it into place, then truncate the original table.
Bingo. I think I should'a done that.
Delete in parallel from many processes.
I am. I've currently got one running for every day between June 3rd and June 16th, inclusive. Seems to be going much faster now than it was before (although I've been on June 3rd forever... fortunately, I suspect there are an abnormally enormous number of records on that day com
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re: Observed (Score:1)
I remember Thomas Kyte (of http://asktom.oracle.com/ [oracle.com] fame) recommending someone to... increase the rollback segment in a case like this
Here's a discussion [oracle.com] about deleting gazillion rows where they also mention that it may be clever to drop the index before deleting.
Re: Observed (Score:2)
increase the rollback segment in a case like this
Well, yeah, there is the obvious solution, but there's also the issue of being one step further removed from those kinds of actions than I would like. Plus I worried that the rollback segment might need to be increased by more than one order of magnitude and that it wouldn't be practical. :)
Thanks for your help.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This
Parent