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: Index on status field?

RE: Index on status field?

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Fri, 8 Apr 2005 23:21:27 +0200
Message-Id: <20050408212128.94170801162F@smtp-out0.tiscali.nl>


Zoran,
like someone else suggested, Oracle B*-tree indexes are indeed *always* unique. for indexes created non-unique (as in your case) the ROWID becomes part of the index key;
if you create unique indexes yourself, the ROWID becomes part of the entry header.

kind regards,

Lex.  



Visit my website at http://www.naturaljoin.nl

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Martic Zoran
Sent: Friday, April 08, 2005 22:56
To: Lex de Haan; Oracle-L_at_freelists.org
Subject: RE: Index on status field?

Hi Lex,

Thanks for the answer.
Again did not get it.

Do you mean exact value as the separator or rowid for that value?

What I have are 1M rows with the same value 0. When I delete some of them a few entries are left empty. Some of these entries are reused and some of them not after inserting few 0 again.

I used analyze validate structure with
select lf_rows, del_lf_rows from index_stats;

but did not get it. It is not sequential. It can be based on the rowid though as Christo pointed.

But how it works exactly?

Is your separator rowid from the branch block? This will mean if the row is going to the same entry in the table the index entry will go to the same index empty entry ...... crazy or is it?

Even Jonathan Lewis articles did not point me to the answer, the same with asktom.
I probably missed it somewhere.

Regards,
Zoran


Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com
--
http://www.freelists.org/webpage/oracle-l



--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 08 2005 - 17:25:22 CDT

Original text of this message

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