Performance tuning [message #56716] |
Fri, 18 April 2003 14:38 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Victoria
Messages: 152 Registered: July 2002
|
Senior Member |
|
|
Hi,
Please help me with the following...
1) qUERY EXECUTION PLAN WITHOUT HINT
Execution Plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=28 Card=1 Bytes=33)
1 0 TABLE ACCESS (FULL) OF 'TCY' (Cost=28 Card=1 Bytes=33)
Statistics
----------------------------------------------------------
0 recursive calls
11 db block gets
1158 consistent gets
635 physical reads
0 redo size
19146 bytes sent via SQL*Net to client
2160 bytes received via SQL*Net from client
30 SQL*Net roundtrips to/from client
3 sorts (memory)
0 sorts (disk)
425 rows processed
2).qUERY EXCUTION PLAN WITH /*+ INDEX(TABLE_NAME INDEX1) */
Execution Plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=389 Card=1 Bytes=33)
1 0 TABLE ACCESS (BY INDEX ROWID) OF 'TCY' (Cost=389 Card=1 By
tes=33)
2 1 INDEX (FULL SCAN) OF 'TCY_INDEX' (NON-UNIQUE) (Cost=385
Card=1)
Statistics
----------------------------------------------------------
24 recursive calls
0 db block gets
868 consistent gets
246 physical reads
16884 redo size
19355 bytes sent via SQL*Net to client
2160 bytes received via SQL*Net from client
30 SQL*Net roundtrips to/from client
3 sorts (memory)
0 sorts (disk)
425 rows processed
Can anyone tell me which one is the best among the above two and
how it(the best one) is decided?
Thanks
~V~
|
|
|
|
|