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: can/do indexes chain?

Re: can/do indexes chain?

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Thu, 05 Jul 2001 14:37:24 -0700
Message-ID: <F001.00342350.20010705143047@fatcity.com>

Charlie Mengler wrote:
>
> I've been asked to create an index which combines two fields, date & location.
> For reasons I don't really want to explain, we need/desire this index to
> be in the order of date, location. The minor gotcha is that while location
> will be populated at the time the record is created, the date field is not
> updated until a later point in time. This date is a document print date.
> So this date field will be going from a NULL value to a non-null value.
> I recognize that this can result in record chaining in the data table.
> In thinking about this, I realized this could have a similar affect
> within the index. However, I've never read anything about index chaining.
>
> Do/can indexes chain?
> Should I be concerned about this?
>
> --
> Charlie Mengler Maintenance Warehouse
> charliem_at_mwh.com 10641 Scripps Summit Ct.
> 858-831-2229 .NET? Not yet! San Diego, CA 92131

Charlie,

   For what I remember of B*Trees (not even the B*+%$# used by Oracle), indexes do not chain, they split. Since the date is the first column, updating it will totally reorder the index each time. I am currently wondering what would be the worst, between this and partitioning by range of date and allowing rows to migrate. Same kind of thing. It is likely to be very ugly. If this is possible, I'd rather drop the index, do the update, and recreate the index.

-- 
Regards,

Stephane Faroult
Oriole Corporation
Voice:  +44  (0) 7050-696-269 
Fax:    +44  (0) 7050-696-449 
Performance Tools & Free Scripts
--------------------------------------------------------------
http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs
--------------------------------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Jul 05 2001 - 16:37:24 CDT

Original text of this message

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