Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: B-Tree Index Vs Bitmap Index Question
In article <6peem7$s58$1_at_news.nuri.net>,
"Bong Hyun Kim" <haunter_at_nuri.net> wrote:
> Hi there,
>
> Does any one know what is difference between B-Tree Index and
> Bitmap Index on Oracle 8 Server ?
> Thanks.
>
> B.H.Kim
>
>
(Leaving out technical details and CREATE INDEX stmts.)
B-Tree Indexes are structured as trees: The indexed columns are arranged
in a tree-like fashion using the key values as interval markers.
The leaves of these trees contain the ROWIDs of the rows in the indexed
table.
Bitmap Indexes are substantially different: They can be imagined as
tables of 1s and 0s.
If the bitmapped column in a table of 1000000 rows contains just
a few different values, bitmapped indexes can speed up retrieval a lot.
(In this scenario, btree indexes won't help)
For each value, you have a (compressed) sequence of 1s and 0s that
indicate the ROWIDs that contain the resp. values.
Hope this helps.
--
Robert Graf-Waczenski
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Tue Jul 28 1998 - 01:19:58 CDT
![]() |
![]() |