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 -> Has anyone experimented with OPTIMZER_INDEX_COST_ADJ???

Has anyone experimented with OPTIMZER_INDEX_COST_ADJ???

From: David Sisk <davesisk_at_ipass.net>
Date: Thu, 31 May 2001 00:23:48 GMT
Message-ID: <oagR6.61462$i56.19595649@typhoon.southeast.rr.com>

I have a particular query which uses a function in the WHERE clause, and I've created a function-based index for it (Oracle8.1.7). With the OPTIMIZER_GOAL = CHOOSE or ALL_ROWS, it doesn't use the index, but with it set to FIRST_ROWS, the optimizer does choose the function-based index. This is what we want because the particular query executes about 2500 times faster when using the function-based index (0.002 seconds vs. 6 seconds).

I tried leaving OPTIMIZER_GOAL=CHOOSE and setting OPTIMIZER_INDEX_COST_ADJ= some low value, and the optimizer chose the same execution plan, but it took several seconds to do so. I'm just wondering if anyone else has noticed this unusual (or it seems so to me) behavior.

Please post or email!

Regards,
Dave Received on Wed May 30 2001 - 19:23:48 CDT

Original text of this message

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