Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id gBL1VA026064
 for <oracle-l@orafaq.net>; Fri, 20 Dec 2002 19:31:10 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id gBL1V9c26059
 for <oracle-l@orafaq.net>; Fri, 20 Dec 2002 19:31:09 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id OAA16993;
 Fri, 20 Dec 2002 14:14:05 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0052070F; Fri, 20 Dec 2002 13:29:35 -0800
Message-ID: <F001.0052070F.20021220132935@fatcity.com>
Date: Fri, 20 Dec 2002 13:29:35 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: =?iso-8859-1?q?Connor=20McDonald?= <hamcdc@yahoo.co.uk>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: =?iso-8859-1?q?Connor=20McDonald?= <hamcdc@yahoo.co.uk>
Subject: Re: Cardinality of indexed columns... how to discover? What is the ma
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

simply using cardinality is not a good idea for
deciding on bitmap indexes.

eg1: you've got 3 distinct values in colX and you want
to get 'select colY where colX = 1'

Sounds perfect for bitmap??? NOPE !!!  Because you
want 'colY', you read the bitmap but you STILL have to
read bucketloads of the table...A full table scan
would be far better.

eg2: you're doing dml on the table...Not a good idea
for bitmaps there..

Bitmaps (or several) are great if their use reduces
the result set dramaticall, otherwise they can really
hurt your system

hth
connor

 --- Jeremy Pulcifer <Jeremy.Pulcifer@kadiri.com>
wrote: > I'm constantly finding, in the database that
I'm
> developing/supporting,
> b-tree indexes on columns with low-cardinality. I
> generally re-create said
> index as a bitmap; however I'd like to go through
> the entire db and identify
> these cases proactively. Is there a way to determine
> the cardinality of an
> index's columns via the dictionary? Also, what
> recommendations do you have
> for determining the cardinality percentage that
> indicates when a bitmap
> should be used? 10%? 20%?
>  

=====
Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc@yahoo.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

