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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Cardinality of indexed columns... how to discover? What is the ma

Re: Cardinality of indexed columns... how to discover? What is the ma

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Fri, 20 Dec 2002 13:29:35 -0800
Message-ID: <F001.0052070F.20021220132935@fatcity.com>


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


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_at_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_at_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).
Received on Fri Dec 20 2002 - 15:29:35 CST

Original text of this message

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