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: Default column value of MAX +1 of column - possible in Oracle 9i?

Re: Default column value of MAX +1 of column - possible in Oracle 9i?

From: <bdbafh_at_gmail.com>
Date: 24 Mar 2005 22:37:54 -0800
Message-ID: <1111732674.900386.296110@l41g2000cwc.googlegroups.com>


jeez.
if you're going to insert 100,000 rows, don't use a sequence with an increment of 1.

I remember a phrase of "what is the fastest way to do :x?" "Don't do :x."

Use a sequence with an increment of say 1000 and keep track of the counter in your proc. That will really minimize the recursive sql.

I don't mean to slight your use of a real example, kudos for doing so.

I just think 100000 rows constitues a batch job where single row oltp stuff need not apply.

-bdbafh Received on Fri Mar 25 2005 - 00:37:54 CST

Original text of this message

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