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: Autoincrement in Oracle 8.1.7

Re: Autoincrement in Oracle 8.1.7

From: Jim Kennedy <kennedy-family_at_attbi.com>
Date: Mon, 29 Apr 2002 05:03:10 GMT
Message-ID: <iu4z8.74596$CH.11896@rwcrnsc52.ops.asp.att.net>


Actually probably pretty efficient since in 9i you can now have your pl/sql code compiled in C if you so chose.

I think there are usually much bigger fish to fry - poorly written or architected apps - regardless of the back end. Jim
"Serge Rielau" <srielau_at_ca.ibm.com> wrote in message news:3CCC9ACB.CE0843FE_at_ca.ibm.com...
> Having ported both I wouldn't dismiss identity that easily.
> An identity column is conceptually nothing else than a sequence tied to a
table
> (i..e a special case).
> I'm fairly sure that MS SQL Server does cache IDENTITY, no advantage
there.
> So you've got one runtime operator in SQL Server's p-code for the insert
> statement vs. pathlength to invoke a trigger plus the operator to serve a
> sequence value.
> Naturally I don't know much about Oracle triggers, but pushing a context
for
> error handling, switching into the module,.. adds all up, even if
everything is
> cached.
> Then all this happens either for every row or - if standard compliant - a
> transition table has to be built: collect all rows for the insert, pass
them to
> the trigger, execute it for every row and pass the transition table to the
> insert.
>
> Cheers
> Serge
> --
> Serge Rielau
> DB2 UDB SQL Compiler Development
> IBM Software Lab, Canada
>
>
Received on Mon Apr 29 2002 - 00:03:10 CDT

Original text of this message

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