Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: index never used

Re: index never used

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/07/25
Message-ID: <397D8527.3863@yahoo.com>#1/1

Jesús Marín wrote:
>
> I have a table indexed by name and indexed by code. Code is a numeric
> item and name a varchar2(30).
> As I use "select * from table order by code", it works fine using the
> appropiate index but as I order it by name, it always makes a sort as I
> see in the plan.
> Anybody knows why?

There may be differences in cardinality and/or blocks in the respective indices. Maybe try a hint.

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Tue Jul 25 2000 - 00:00:00 CDT

Original text of this message

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