Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> index fast full scan vs index range scan
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
-- 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
![]() |
![]() |