Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Hints in Practice
"DA Morgan" <damorgan_at_psoug.org> wrote in message
news:1156309585.128739_at_bubbleator.drizzle.com...
> Bob Jones wrote:
>> "Robert Klemme" <shortcutter_at_googlemail.com> wrote in message >> news:4l0scsFe4upiU1_at_individual.net... >>> All, >>> >>> from what I read and from my limited personal experience, hints are >>> superfluous most of the time. The general recommendation seems to be >>> "make sure your schema is properly done, create appropriate indexes, >>> make sure statistics are up to date and let the CBO do its work". Hints >>> seem to be useful only in very rare cases (bugs?) where the CBO doesn't >>> come up with an appropriate plan. Is this a correct summary of the >>> situation or did I miss something? >>> >>> Thanks >>> >>> robert >> >> That is correct. Oracle is about the only database I know uses explicit >> hints. That is not really a vote of confidence in their optimizer. >
CHOICE? Do we have other options for those features? With hints, we certainly do.
>> I would do anything to avoid using those hints. They are not portable and >> do not conform to any standard. >
Again, do we have other choices? With PL/SQL, maybe.
> I can not subscribe to gutting those features that make a product best
> of breed just because they are not also present in the worst of breed.
> </RANT WARNING>
>
Well, if injecting hints into SQL is considered the best of the breed feature.
>> It is almost always possible to build good performing queries without >> hints. >
Then why all the rants? Received on Wed Aug 23 2006 - 10:22:03 CDT