This is a complex question that can't be easily answered in
an email, at least not by me. :)
Read the 'Optimizer' chapter in 'Designing and Tuning for Performance'
manual, it gives very good explanations of what drives the RBO
and CBO to use indexes, or not.
Jared
On Thursday 31 May 2001 07:37, Johnson, George wrote:
> Hi all, probably a simple answers to these.
>
> I some queries regarding the old phrase "if the optimiser determines
> that a query would benefit from an index, it uses one".
>
> These questions assume that no hints have been dropped in.
>
> 1. Does anyone have the very rough parameters/formulae that the
> optimiser uses to determine when an index should be used?
>
> 2. Does anyone know how the optimiser determines where to find
> information about what indexes are to be used? Would it be a simple matter
> of making a query against the dictionary looking for indexes with column
> structures matching the columns required?
>
> 3. Apart from the obvious reason that full-scan is more efficient,
> are there any other reasons the optimiser should abandon an index in favour
> of a full scan.
>
> Thanks in adv.
> Gj
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> **********************************************************************
>
> --------
> Oracle documentation is here:
> http://tahiti.oracle.com/pls/tahiti/tahiti.homepage To unsubscribe: send a
> blank email to oracledba-[Email Address Removed] To subscribe: send a
> blank email to oracledba-[Email Address Removed] Visit the list archive:
> http://www.LAZYDBA.com/odbareadmail.pl
> Tell yer mates about http://www.farAwayJobs.com
> By using this list you agree to these
> terms:http://www.lazydba.com/legal.html
Oracle LazyDBA home page