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

Home -> Community -> Mailing Lists -> Oracle-L -> index fast full scan vs index range scan

index fast full scan vs index range scan

From: Senthil Ramanujam <sramanujam_at_comcast.net>
Date: Sun, 21 Mar 2004 19:25:57 -0500
Message-ID: <405E3295.5010508@comcast.net>

List,

I may need a little help here understanding Oracle optimization. How will the following code be treated in Oracle optimizer?

table has a column called "code". code is (not null) varchar2(24). it has a regular index on this column. :b1 would have any valid value.

the above code lets the optimizer to choose "index fast full scan". but changing the code slightly as given below:

lets the optimizer to choose "index range scan". obviously, the second method runs much faster.

Any thoughts or inputs are much appreciated.

thanks.

senthil



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Sun Mar 21 2004 - 18:22:59 CST

Original text of this message

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