Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: slow performance with sequences

Re: slow performance with sequences

From: Noons <wizofoz2k_at_yahoo.com.au>
Date: 9 Nov 2004 03:29:32 -0800
Message-ID: <1099999772.138376.26360@z14g2000cwz.googlegroups.com>


john b wrote:

> sequences that I'm having. In essence when I do a mass insert
> (525,000 records - it's a very narrow table) into a table without a
> sequence with a trigger the insert happens in two seconds; when I do
> the same with the trigger on and sequence used it takes 1 minute and
6
> seconds. The table does not have any indexes. I cached the sequence

Lose the trigger and use the tmp_seq.nextval directly in populating the table.

Like Mark said: there are a coupla problems with referencing the nextval of a sequence, one of them is that you can't use it directly inside PL/SQL without the silly DUAL table. Received on Tue Nov 09 2004 - 05:29:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US