Re: delete 40million rows
Quote:
Originally posted by dba_admin
I have a table with 80 million rows of data. I need to delete about 40 millions. I can do either
1. set a huge rollback segment and delete 40millions at once
or
2. run a procedure and delete 10000 rows at a time
Which is faster?
Number 2 option will fall over... time after time, as you are performing a commit in a cursor. Oracle RECOMMEND you DON'T do this. Parition... Open Cursor, fetch, COMMIT, close cursor, repeat. Only commiting every million records or so. But deletting is SLOW, SLOW SLOW.... get into Partitioning and Truncate.