Re: Cost based optimizer
Date: 1996/11/15
Message-ID: <rp1399-1511961524460001_at_m12cim15.sps.mot.com>#1/1
>
> It talked about adding "hints" to SQL statements that were using the Cost
> based optimizer.
>
>
> So if you add hints to SQL statements that use cost based optimization (and
> collect statistics), what is the advantage of cost based over rules based
> optimizer ????????????
>
> Thanks to anyone who can give me insight on this subject.
>
> Art
Art,
unfortunately the COST based optimizer is not AI based or all knowing,
insteadit seems it has a set of rules it follows. As a result it still
makes assumptions or middle of the road assesments. It is always best
that the Application Developer has hints or documents their code.
But in most cases the DBA is left to figure it out.
So even though the COST based optimizer is automagic, it is still best to have hints in your code.
Steve Lemme
DBA
Motorola
-- When you are in it up to your ears.... Keep your mouth shut! rp1399_at_email.sps.mot.comReceived on Fri Nov 15 1996 - 00:00:00 CET