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: Query optimisation

Re: Query optimisation

From: Grinalds <grinalds_at_konts.lv>
Date: 1997/11/25
Message-ID: <347ABE29.74CC6E03@konts.lv>#1/1

Geoff Dewhurst wrote:

> It uses the index like it should, however, when I change the statement to :
> SELECT CODE FROM CLR WHERE CLRIDX = 1;
> the index is not used!!! Can anyone explain this?

It uses index when field is highly selective-small variance and can scan less than 20% of rows, otherwise it uses full table scan.

Grinalds Received on Tue Nov 25 1997 - 00:00:00 CST

Original text of this message

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