Oracle System Tables
Features of Oracle Bitmap Index

Oracle Index: Bitmap index and B-tree index

Simple life posted @ Tue, 08 Sep 2009 18:40:32 +0800 in Oracle Database with tags Oracle Index Bitmap index B-tree index , 4030 readers

        Oracle has 2 kinds of Index: B-tree index and Bitmap Index.

 

        B-Tree indexes are the regular type that OLTP systems make much use of, and bitmap indexes are a highly compressed index type that tends to be used primarily for data warehouses.

 

        An index provides pointers to the rows in a table that contain a given key value. A regular index stores a list of rowids for each key corresponding to the rows with that key value. In a bitmap index, a bitmap for each key value replaces a list of rowids.

        Each bit in the bitmap corresponds to a possible rowid, and if the bit is set, it means that the row with the corresponding rowid contains the key value. A mapping function converts the bit position to an actual rowid, so that the bitmap index provides the same functionality as a regular index. If the number of different key values is small, bitmap indexes save space.

        Bitmap indexes are most effective for queries that contain multiple conditions in the WHERE clause. Rows that satisfy some, but not all, conditions are filtered out before the table itself is accessed. This improves response time, often dramatically.

        B-tree index is commonly used index, which is created usingCREATEINDEXcommand.

ITPUB个人空间�^W&m;ho+Z
K#G

        B-tree index structure:

  • Root: Pointer to branch node
  • Branch: Pointer to Leaf node. The distinct value of index columns are sorted and divided into different groups. Each branch is mapped to a group of data.
  • Leaf: Each Leaf contains the rowid of the records it refers to. Leaf node are linked together in both directions, allowing ascending or descending search. Also leaf nodes can be sorted by ascending or descending.

 

        Bitmap index is some special index, which is created usingCREATE BITMAP INDEXcommand.

        Bitmap Index structure:

  • Root: Pointer to branch node
  • Branch: Pointer to Leaf node. Branch contains the start rowid and end rowid of the leaf blocks it refers to. (It is different from B-tree here. Here is start rowid and end rowid.)
  • Leaf: Leaf is a bitmap. Each bit in the bitmap corresponds to a row in the table. You can think the bitmap like a table with RowID as Row Header and Values as column header. When the row has the value of the column header. It is marked to 1, else 0.

 

        To understand more about Oracle Bitmap Index, you may refer to my next post: Features of Oracle Bitmap Index

  • No match
Avatar_small
betta fish for sale said:
Mon, 22 Feb 2021 19:36:51 +0800

I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..

Avatar_small
Liwovosa said:
Mon, 17 May 2021 17:27:15 +0800 Without fail, your writing style is top professional; even your website also looks amazing thank you for posting. เว็บบาคาร่า
Avatar_small
Liwovosa said:
Tue, 18 May 2021 19:29:58 +0800

You possess lifted an essential offspring..Blesss for using..I would want to study better latest transactions from this blog..preserve posting.. dark web links

Avatar_small
Liwovosa said:
Tue, 18 May 2021 22:11:43 +0800

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks canadian online casino

Avatar_small
Liwovosa said:
Wed, 19 May 2021 16:52:20 +0800

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. best online casino canada

Avatar_small
Liwovosa said:
Wed, 19 May 2021 20:02:51 +0800

Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. buy modafinil

Avatar_small
لی ویوسوہ ہو یار said:
Thu, 20 May 2021 18:44:10 +0800 I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. [url=https://epodcastnetwork.com/4-polish-celebrities-that-have-a-passion-for-gambling/]polskie kasyno online[/url]
Avatar_small
لی ویوسوہ ہو یار said:
Thu, 20 May 2021 18:44:28 +0800

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. polskie kasyno online

Avatar_small
لی ویوسوہ ہو یار said:
Thu, 20 May 2021 21:30:18 +0800

What a thrilling post. It is extremely chock-full of useful information. Thanks for such a great info. online casino

Avatar_small
لی ویوسوہ ہو یار said:
Sat, 22 May 2021 17:19:36 +0800

I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! casinos online

Avatar_small
لی ویوسوہ ہو یار said:
Sun, 23 May 2021 20:01:27 +0800

This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… raspadinhas online

Avatar_small
لی ویوسوہ ہو یار said:
Wed, 26 May 2021 19:39:28 +0800 We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. turnover service
Avatar_small
AAA said:
Sat, 09 Apr 2022 19:13:19 +0800

thanks for this usefull article, waiting for this article like this again. 온라인바카라


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter