Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> strange behavior of the optimizer
Hi list,=0A=0Ahere is an output of the autotrace from the following sta=
tement:
select * from fa where fakt_art =3D 'BES' and fakt_nr between 5300001 a=
nd
5300010=0AExecution Plan
----------------------------------------------------------=0A 0 =
SELECT
STATEMENT Optimizer=3DCHOOSE (Cost=3D4 Card=3D1 Bytes=3D30=0A1)=0A 1 =
0 TABLE
ACCESS (BY INDEX ROWID) OF 'FA' (Cost=3D4 Card=3D1 Bytes=0A =3D=
301)=0A=0A 2
1 INDEX (RANGE SCAN) OF 'KEY_FA' (UNIQUE) (Cost=3D3 Card=3D1)=0A=0A=
Statistics
----------------------------------------------------------=0A =
0
recursive calls=0A 0 db block gets=0A 13 consistent =
gets
3 physical reads=0A 0 redo size=0A 3880 bytes sent vi=
a
SQL*Net to client=0A 249 bytes received via SQL*Net from client=
2 SQL*Net roundtrips to/from client=0A 0 sorts (memory) 0 sorts (disk)=0A 9 rows processed=0A=0A=0ANow the same stat=ement, just
Execution Plan=0A------------------------------------------------------=te
----
0 SELECT STATEMENT Optimizer=3DCHOOSE (Cost=3D8783 Card=3D14471 By=
Bytes=3D43=0A 55771)=0A=0AStatisticsto get the
----------------------------------------------------------=0A =
0 recursive calls=0A 0 db block gets=0A 91957 consistent = gets 54288 physical reads=0A 52 redo size=0A 3884 bytes sen= t via SQL*Net to client=0A 249 bytes received via SQL*Net from client= 2 SQL*Net roundtrips to/from client=0A 0 sorts (memory) 0 sorts (disk)=0A 9 rows processed=0A=0A=0A=0AWhat can we do=
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Jan 21 2005 - 11:15:13 CST
![]() |
![]() |