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: Cost-Based or Rule-Based?

Re: Cost-Based or Rule-Based?

From: S. P. Pohilko <pohilko_at_prodigy.net>
Date: Sat, 23 Jan 1999 16:17:29 -0600
Message-ID: <36AA4A79.F00C53F2@prodigy.net>


dave_dizon_at_hotmail.com wrote:

> So I am curious,how many installations out there are using or planning to use
> the Cost-Based Optimizer (CBO) instead of the Rule-Based Optimizer (RBO)?
> And for those who have the experience on both of RBO and CBO which is the
> better of the two?

CBO without any doubts is better than RBO. At our site we have several Oracle DBs

and PeopleSoft applications that were optimized for RBO. Switching optimization mode for slow SQL expressions increased speed in 50-2000 times. I had one expression that in RBO mode ran for 3h 5 min, in CBO - 5 sec. In some case you will have the same execution plans (that means the same speed). Two times I saw a "performance holes" - CBO choose wrong indexes, and performance in these cases was awful - 4-6 hours instead of 10 min. So I had to fix it manually, with hints.

Oracle CBO can do a good job, optimizing expressions. You only need to provide information to it - regularly analyze your object (tables, indexes, clusters), and
create proper indexes for faster access to data. Also you can optimize with histograms,
this can significantly improve your expression in some cases.

Peter Received on Sat Jan 23 1999 - 16:17:29 CST

Original text of this message

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