There was a discussion about this some time ago in this forum http://www.dbasupport.com/forums/sho...threadid=8447.
I was claiming that using MOD(SQL%ROWCOUNT) should be faster then then incrementing a counter and resetting it after every commit.
In the meantime I've found Tom Kyte's article (either in Oramag or on asktom.oracle.com) that discusses the same topic. He (Tom) proved with PL/SQL profiler that using "IF x = 5000 THEN ...." is faster than using "IF MOD(x,5000) THEN ...". But Tom's test case was a slightly different than the one we discussed in the above thread - it used no cursor so in both cases the counter had to be incremented. And besides, his profiler timings are somewhat skewed. In any case the time difference should be neglectable and I still think the MOD() aproach is less error-prone.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?