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: Composite indices and skip scanning

RE: Composite indices and skip scanning

From: Boyle, Christopher J. <Christopher.J.Boyle_at_espn.com>
Date: Thu, 15 Apr 2004 10:06:22 -0400
Message-ID: <8FE22CA2A160D54A8B34B11713F31BB40AC51092@xchgbrsm3.corp.espn.pvt>


Many thanks to Jocke, Jonathan, Michael and Richard for their replies. The leading value is certainly not going to have a low enough cardinality in this case. I appreciate the information.

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Boyle, Christopher J.
Sent: Thursday, April 15, 2004 9:11 AM
To: oracle-l_at_freelists.org
Subject: Composite indices and skip scanning

Oracle 9.2.0.2.0=3D20

I have an intersection table composed of PK_TABLE_A, PK_TABLE_B which is being used to handle a M:M relationship between A and B. There is a unique constraint on the combination of the two entries and a corresponding index with A as the leading value. When I was trying to access table A using the PK from table B I expected it to use that index because of the 9i skip scan feature that allows for a non leading index member to still utilize the index. What I got was a FTS until I added a separate index on PK_TABLE_B only. Is there something with a unique index that prevents skip scanning? Or do I have too much blood in my caffeine and am mis-rembering how the indices should work?

Thanks,
Chris =3D20



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


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 Thu Apr 15 2004 - 09:57:40 CDT

Original text of this message

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