Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: When to apply an index?

Re: When to apply an index?

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Mon, 22 Jul 2002 09:07:20 +0100
Message-ID: <3d3bbd39$0$8512$ed9e5944@reading.news.pipex.net>


It depends. B-Tree index access is only more efficient than a full table scan for systems that have many different values. Thus it is unlikely that creating a conventional index for tables with low cardinality is a good idea. However Oracle does have an index type that is suitable for such data,provided that it is rarely (ideally never) updated. This is the bitmap index. The exact threshold for index acccess being more efficient than table scans will vary according to your data.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
"dbuckingham" <member_at_dbforums.com> wrote in message
news:3d3bb349$1_at_usenetgateway.com...

> Is it better to apply indexes to tables that have many different random
> values or is it better to apply to tables that only have a small number
> of values (large table but a lot of the same value)?
>
> Dan.
>
>
>
> --
> Daniel Buckingham
> Technical Consultant
> Mercia Software
>
> Posted via dBforums
> http://dbforums.com
Received on Mon Jul 22 2002 - 03:07:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US