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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Why is the full table scan not being chosen?

Re: Why is the full table scan not being chosen?

From: Paul Vallee <paulvallee_at_gmail.com>
Date: Wed, 5 Jul 2006 09:14:42 -0400
Message-ID: <91719bc40607050614yd7fae62tb5f07ea11aec7bbf@mail.gmail.com>


> Do you have you optimizer_mode set to first_rows by any chance?
> IIRC, this way optimizer will always choose index scan if that helps
> to avoid sorting - regardless of the cost.

>> DBFMRC=8. OPTIMIZER_MODE=FIRST_ROWS.
Looks like that's it!

Paul

On 7/5/06, Alex Gorbachev <gorbyx_at_gmail.com> wrote:
>
> (retry due to overquote...)
>
> Do you have you optimizer_mode set to first_rows by any chance?
> IIRC, this way optimizer will always choose index scan if that helps
> to avoid sorting - regardless of the cost.
>
>
> 2006/7/5, Stuart Clowes <stuart.clowes_at_gmail.com>:
> > So, it looks to me like the FTS is cheaper, and the optimizer knows it.
> So
> > why doesn't it choose it unless I ask it to?
>
>
> --
> Best regards,
> Alex Gorbachev
>
> http://blog.oracloid.com
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Paul Vallee
President, The Pythian Group, Inc.
http://www.pythian.com
I blog at http://www.pythian.com/blogs/

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jul 05 2006 - 08:14:42 CDT

Original text of this message

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