Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Deletes without rollback
Richard,
> "D Rolfe" <dwrolfeFRUITBAT_at_orindasoft.com> wrote in message
> news:40922201.6050306_at_orindasoft.com...
>
>>3. Try adding "AND ROWNUM <= 100000" to the end of your delete >>statement. You may find it that doing 100000 rows at a time is faster, >>especially if you commit after each delete. One of the symptons of >>running low on rollback space is a dramatic slowdown as transactions get >>bigger and bigger. >>
You are right in that in most (>90%) situations the one big SQL statement beats several smaller ones.
I have however seen several situations where breaking down a really big transaction into chunks did lead to it running faster.
Bear in mind that I'm not telling him it *will* be faster - I'm suggesting he try a test and see for himself....
On reflection my rollback segment theory is probably wrong.... :)
David Rolfe
Orinda Software
Dublin, Ireland
Received on Fri Apr 30 2004 - 10:17:53 CDT