Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: rm RULE based optimizer != GOOD IDEA

Re: rm RULE based optimizer != GOOD IDEA

From: Robyn <>
Date: Fri, 22 Apr 2005 13:35:47 -0400
Message-ID: <>

I agree that the valid reason for RBO to go is to remove the need for code maintenance, but it has become a crutch in some of our systems and because of that, I personally won't miss it. Never meant to imply that lazy developers justifies Oracle getting rid of it.

As for the baseline, I'd prefer to see traces on the original code and use it as baseline to compare changes throughout a tuning process. Of course I can do this on the queries I know about, but I'm not the only one moving stuff to production.

In your case, you mentioned gathering the type of info I like to see BEFORE adding the rule hint, and I'd throw a party if one of developers did that.


On 4/22/05, Post, Ethan <> wrote:
> The "our developers are lazy" argument is not a good reason to get rid
> of something. The only valid reason I see so far is that Oracle has a
> significant amount of work to do to maintain the RULE engine. I have
> never seen the code for this so I would not know but will take it for
> granted that this is true (must be more than 20 simple rules).
> Not sure what you mean by "there is no baseline to tune it from?".
> Would you have a baseline if they added a INDEX hint? You could remove
> the INDEX hint also. You could update the stats on a table and have all
> sorts of changes to queries, some fast some slower, what is your
> baseline there?
> -----Original Message-----
> From: Robyn []
> Sent: Friday, April 22, 2005 12:12 PM
> To:
> Cc: Post, Ethan; Christian Antognini; Peter Ross Sharman
> Subject: Re: rm RULE based optimizer !=3D GOOD IDEA
> I for one will be happy to see the rule based optimizer go. Most of
> our developers and dbas add rule hints as a quick fix without taking
> the time to actually figure out the problem. Then, they announce
> that the query completed 'really fast' in dev and move it to
> production, where it may or may not run 'really fast'. Either way,
> there is no baseline to work from if we need to continue to tune it.
> Plus, the rule hint is likely to exist through the next 3 upgrades,
> and no one remembers that it exists, much less knows if it's still
> making things 'really fast'.
> As a result, we have lots of legacy queries that need to be
> reevaluated and there have been many times when REMOVING the rule hint
> in an old query sped things up considerably.
> As for the oic and oica, implementing system statistics seemed to
> negate the effect.
> Robyn

Received on Fri Apr 22 2005 - 13:39:58 CDT

Original text of this message