Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> UNUSED INDEX on CHAR fields
I am currently trying to tune my queries and I saw with help from "EXPLAIN PLAN" that sometimes (not always) indexes on char fields are not used, e.g.:
SELECT MAX(a.v_adr + a.v_size * b.pc_size) max_size
FROM varlist a, v_btypen b
WHERE a.v_typ = b.name;
OPERATION OPTIONS OBJECT_NAME OBJECT_TYPE ------------------------------ ------------------------------SORT
TABLE ACCESS FULL V_BTYPEN TABLE ACCESS BY INDEX ROWID VARLIST INDEX RANGE SCAN BAUTEIL_V_TYP NON-UNIQUESELECT
TABLE ACCESS FULL for V_BTYPEN is strange, because the field "name" of this table (char(16)) is indexed even unique and the compared field v_typ is of the same type and size.
Thanks for any explanation in advance
Stefan
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Jun 28 2000 - 00:00:00 CDT