Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> cost based optimizer
I have a table of 500,000 records that is analyzed and contains several indexes that are analyzed.
Can someone explain to me why the cost without a hint is much lower than the cost with a hint?
Using a hint is 10 times faster than without a hint even though the cost is much higher.
Since this is a third party app, I cannot add hints. What aoptions do I have?
select /*+ Index("ICMSSHDR" XSKSHDRS181M1) Use this index XSKSHDRS181M1 */
PKTS_ICMSSHDR from ICMSSHDR
where (FK_IX_ICMSSHDR_DELV='x' and (SHDR_DELV_WHSE_CODE<'86'));
Execution Plan
select PKTS_ICMSSHDR from ICMSSHDR
where (FK_IX_ICMSSHDR_DELV='x' and (SHDR_DELV_WHSE_CODE<'86'));
Execution Plan
Thanks
John Baylis
Database Administrator
Canadian Forest Products Ltd.
Vancouver B.C. Canada
(604) 697-6476 (Office)
(604) 313-6054 (Cell)
Received on Fri Feb 08 2002 - 12:44:03 CST