Re: Oracle is painfully slow when doing massive INSERTs

From: Jeff Garzik <jeff.garzik_at_spinne.com>
Date: 1998/03/13
Message-ID: <350893B5.16B527B6_at_spinne.com>#1/1


(posted and mailed to original author)

Wolfgang Diestelkamp wrote:
> Mark Usrey wrote:
> > > It seems to me that it all boils down to one thing: Oracle's just plain
> > > painfully slow on massive INSERT's....
 

> > > Any ideas, anyone?
 

> > You did mention any indices that are kept on you destination table. Large
 

> [...]
 

> > If you are keeping indices, try dropping them before doing the insert, and then
> > recreating them afterwards.
>
> Another reason could be that the rollback segment just grows forever if
> you don't do a commit. Try to commit every n rows (n beeing in the range
> of 100 to 1000 maybe).

commit'ing every N rows provided me with an excellent speed/performance advantage, with a moderate number of indices.

-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting
Received on Fri Mar 13 1998 - 00:00:00 CET

Original text of this message