Re: How does Oracle use indexes?

From: Ray Dutcher <rdutc_at_ia.mc.xerox.com>
Date: Thu, 30 Sep 1993 16:33:19 GMT
Message-ID: <1993Sep30.163319.9322_at_spectrum.xerox.com>


Rick,

A vendor has supplied an application with the following three indexes on a table:-

Index1 uses columns col1, col2, col3, col4, col5, col6.
Index2 uses columns col1, col2, col3.  
Index3 uses columns col1, col2.

You are absolutely right, in your scenario, index2 and index 3 are reduntant. In a composite index, also known as a concatenated index, if you have a 5 column index the index will be used in V6 if the where clause references all or the leading portion of the columns in the composite index.

---
Ray Dutcher
Oracle DBA
Xerox Corp.
1350 Jefferson Rd., 801-15A
Rochester, NY 14623
Received on Thu Sep 30 1993 - 17:33:19 CET

Original text of this message