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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Rebuild Indexes

RE: Rebuild Indexes

From: <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 25 Feb 2004 18:08:16 +0000
Message-Id: <E1Aw3SC-000MR0-0X@anchor-post-33.mail.demon.net>

select seq.nextval into :local_var from dual; insert into tabx values (:local_var, ...);

compared to

insert into tabx(seq.nextval, ...)
returning id_col into :local_var;

The former has a non-zero probability of the inserts arriving out of order, and therefore wrecking the sequential input.

Regard
Jonathan Lewis

ian_at_SLAC.Stanford.EDU wrote:
> I'm curious, how does coding of an application effect index block splits. Does Oracle know because the index is based on a monotonic key that the splits should be 100/0. I wouldn't call that application coding. Do the 100/0 splits occur unless numbers are lost due to the sequence being kicked out of cache or something else causes values to be skipped?
>
> Ian MacGregor
> Stanford Linear Accelerator Center
> ian_at_SLAC.Stanford.edu
>
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Wed Feb 25 2004 - 12:05:17 CST

Original text of this message

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