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 -> Multi-column indexes vs Single Column Indexes

Multi-column indexes vs Single Column Indexes

From: <zigzagdna_at_yahoo.com>
Date: Sat, 11 Aug 2007 18:50:57 -0700
Message-ID: <1186883457.927177.6390@w3g2000hsg.googlegroups.com>


I am using Orale9i and Oracle 10g on Windows and UNIX boxes. When creating new indexes which are non-unique, what are the pros and cons of creating a single index of multiple columns vs creating a separate index on each column.

For example, if I created separate indexes: one on col1 and other on col2,
Oracle could use these indexes if either col1 or col2 was used in queries.
However if I had an index on multiple columns (co1, col2), Oracle will not use
Index if query used only col2. I know in Oracle9i, Oracle can use parts of multi-column index for col2, but this is not as efficient as having a separate index on col2. Disk space is not an issue for me, so I will be better off using a separate index for each column.

Thanks Received on Sat Aug 11 2007 - 20:50:57 CDT

Original text of this message

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