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: composite index

Re: composite index

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Thu, 11 Dec 2003 07:00:00 -0800
Message-ID: <1071154705.558544@yasure>


Laly wrote:
> Hello,
>
>
> Suppose we have a huge table T(a, b, ...)
> There is a primary key on (a, b).
> Can we gain some time on queries like
> select *
> from T
> where a = ...
> by creating a new nonunique index on column a.
>
>
> Thanks in advance,
>
>
> Laly.

Version number?

Possibly. It is worth testing in a specific situation.

Certainly one on 'b' would be more likely to generate an improvement provided the cost of the indexes maintenance isn't larger than the improvement.

There is no general rule other than try it and find out.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Thu Dec 11 2003 - 09:00:00 CST

Original text of this message

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