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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: cost

RE: cost

From: <thump604_at_comcast.net>
Date: Mon, 05 Apr 2004 15:20:37 +0000
Message-Id: <040520041520.1896.40717945000C59A2000007682200735834FFCBCFC98F928A97@comcast.net>


We analyze compute stats every night and with histograms. We notice that when degree is set on a table with a full table scan, that the cost goes sky high.
I wonder if o_i_c_a might be playing a role in that number?

--
- David


> Yes, the CBO will ALWAYS choose the plan with the lowest cost. If you
> have SQLs where higher cost plans are actually more efficient than lower
> cost plans, then you ought to ask yourself why. One solution is always
> to simply add hints and convince the optimizer to do what you want, but,
> a better long-term approach is probably to try to understand WHY the CBO
> thinks a particular plan is lower cost than another and then give the
> CBO better information so that it can more accurately estimate plan
> costs.
---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------
Received on Mon Apr 05 2004 - 10:17:41 CDT

Original text of this message

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