Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: 54 is less than 4 for CBO ?
Hi
>INHO, Oracle makes wrong assumption with all_rows hint
>as default. Most queries are never interested in all
>rows. I executed the bellow query on my production system:
>
>select round(100*count((case when fetches/executions<2 then 1
>else null end ))/count(1)) pct_first_1_rows from v$sqlarea
>where command_type=3 and executions>0
Be careful here.
To do such computations the column ROWS_PROCESSED it's better...
HTH
Chris
-- http://www.freelists.org/webpage/oracle-lReceived on Fri May 26 2006 - 05:09:02 CDT
![]() |
![]() |