Index queries

Index queries

 

  


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 LazyDBA home page