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

Home -> Community -> Usenet -> c.d.o.server -> Re: Index Not Used with Parameterized Query

Re: Index Not Used with Parameterized Query

From: Biff Gaut <biff_gaut_at_hotmail.com>
Date: 30 Dec 2003 13:15:56 -0800
Message-ID: <a6090148.0312301315.3635dfd1@posting.google.com>


For the parameterized version I see this-

call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------

Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          3           0
Fetch        1      0.00       0.00          0         14          0          17

------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 14 3 17

Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 21

Rows Row Source Operation

-------  ---------------------------------------------------
      0  SORT UNIQUE 
      0   HASH JOIN 
      0    TABLE ACCESS BY INDEX ROWID I
     13     INDEX RANGE SCAN (object id 17309)
      0    TABLE ACCESS FULL E


for the non-parameterized version I see this-

call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------

Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        1      0.00       0.00         33         69          0          17

------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 33 69 0 17

Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 21

Rows Row Source Operation

-------  ---------------------------------------------------
     17  SORT UNIQUE 
     49   NESTED LOOPS 
     13    TABLE ACCESS BY INDEX ROWID I
     13     INDEX RANGE SCAN (object id 17309)
     49    TABLE ACCESS BY INDEX ROWID E
     61     INDEX RANGE SCAN (object id 48414)


Biff Gaut
Gaithersburg, MD Received on Tue Dec 30 2003 - 15:15:56 CST

Original text of this message

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