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: index on foreign key

Re: index on foreign key

From: Steve Adams <steve.adams_at_ixora.com.au>
Date: 2000/06/09
Message-ID: <3940382b.307973582@news.eagles.bbs.net.au>#1/1

Hello Marc,

In general, yes. However, if the index is not needed to support an access path, and if the parent table is never updated during normal operation such that a shared lock would be taken against the child table in the absence of the index, then the index should NOT be present in order to avoid the index maintenance that would be required for DML on the table. Any risk of unexpected updates on the parent table taking a shared lock on the child can be excluded using the ALTER TABLE DISABLE TABLE LOCKS statement.

Regards,
Steve Adams

http://www.ixora.com.au/
http://www.oreilly.com/catalog/orinternals/
http://www.christianity.net.au/


On Thu, 08 Jun 2000 05:24:35 -0700, mcomer <mcomer2NOmcSPAM_at_hotmail.com.invalid> wrote:

>In an Oracle database, should all foreign key columns have
>indexes?
>
>Marc
>
>* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
>The fastest and easiest way to search and participate in Usenet - Free!
>
Received on Fri Jun 09 2000 - 00:00:00 CDT

Original text of this message

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