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: PL/SQL performance question

Re: PL/SQL performance question

From: Bricklen <bricklen-rem_at_yahoo.comz>
Date: Wed, 12 May 2004 21:59:33 GMT
Message-ID: <97xoc.2984$j6.280@edtnps84>


Marcel Stör wrote:

> Hi all,
>
> Just out of curiosity, I'd like to get your opinion on the following
> scenario:
> Lots of data (i.e. 2 million records) are periodically loaded into the db
> through SQL Loader. Unfortunately, each record needs to be tweaked before
> will eventually be saved. Would it be faster to have an on-insert trigger do
> this at record level or to have a procedure that will run once all records
> are stored in the table?
>
> Regards,
> Marcel
>

Without putting it to the test, I'd have to go option number 2. Triggers are generally slow. Also, it depends how complicated your "tweaking" is. The more complicated it gets, the more useful pl/sql gets. Received on Wed May 12 2004 - 16:59:33 CDT

Original text of this message

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