Unix Technical Forum

Bitmap indexes

This is a discussion on Bitmap indexes within the DB2 forums, part of the Database Server Software category; --> Hello, At http://en.wikipedia.org/wiki/Compari...ment_syste ms it's stated that DB2 doesn't have bitmap indexes. This seemed strange to me, so I ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 04:05 AM
Troels Arvin
 
Posts: n/a
Default Bitmap indexes

Hello,

At
http://en.wikipedia.org/wiki/Compari...ment_syste ms
it's stated that DB2 doesn't have bitmap indexes. This seemed strange to
me, so I tried looking in the DB2 UDB (for LUW) manual without luck.
Googling turned up vector indexes, but it seems that those are only
available for the mainframe and AS/400 versions of UDB.

Can someone summarize UDB's support for indexes suitable for working with
OLAP, cubes, etc? - Especially: Do the various flavors of UDB still have
differences in their index type support?

--
Greetings from Troels Arvin, Copenhagen, Denmark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 04:05 AM
peteh
 
Posts: n/a
Default Re: Bitmap indexes

This is not a direct answer to the "bitmap index" question, but for
OLAP/cube-type performance structures, the multi-dimensional-cluster
(or MDC) certainly is applicable. This has also been described as a
"block index", but its real name is multidimensional cluster. Reseach
here or at ibm.com

Pete H

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 04:05 AM
kenfar
 
Posts: n/a
Default Re: Bitmap indexes

Troels Arvin wrote:
> At
>http://en.wikipedia.org/wiki/Compari...ment_syste ms
> it's stated that DB2 doesn't have bitmap indexes. This seemed strange

to
> me, so I tried looking in the DB2 UDB (for LUW) manual without luck.
> Googling turned up vector indexes, but it seems that those are only
> available for the mainframe and AS/400 versions of UDB.


That article is wrong on a few accounts - lack of support for temp
tables, materialized views, and bitmaps. I just updated it (hurray for
wikis).

DB2 handles bitmap indexes differently than Oracle - it generates them
dynamically.


> Can someone summarize UDB's support for indexes suitable for working
> with OLAP, cubes, etc?


DB2 supports b-tree indexes as well as dynamic bitmap indexes. I find
its clustering via MDC to generally be of more value than indexing with
OLAP however. And MDC can work in conjunction with inter-partition
parallelism.

> Especially: Do the various flavors of UDB still have
> differences in their index type support?


Not that I'm aware of.

Here's a link that might be useful to you:
http://publib.boulder.ibm.com/infoce...lp/conhow2.htm

ken

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 04:05 AM
Troels Arvin
 
Posts: n/a
Default Re: Bitmap indexes

On Tue, 08 Mar 2005 07:37:24 -0800, kenfar wrote:
> That article is wrong on a few accounts - lack of support for temp tables,
> materialized views, and bitmaps. I just updated it (hurray for wikis).


:-)

> DB2 supports b-tree indexes as well as dynamic bitmap indexes. I find its
> clustering via MDC to generally be of more value than indexing with OLAP
> however. And MDC can work in conjunction with inter-partition
> parallelism.


Have printed some MDC documentation for later reading; thanks.

> Here's a link that might be useful to you:
> http://publib.boulder.ibm.com/infoce...lp/conhow2.htm


I get a "The requested subject is not available" error message from that
URL.

--
Greetings from Troels Arvin, Copenhagen, Denmark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 04:05 AM
Mark Townsend
 
Posts: n/a
Default Re: Bitmap indexes

kenfar wrote:

>
> That article is wrong on a few accounts - lack of support for temp
> tables, materialized views, and bitmaps. I just updated it (hurray for
> wikis).
>
> DB2 handles bitmap indexes differently than Oracle - it generates them
> dynamically.
>


I guess it comes down to what your definition of an index is.

To me an index is stored for reuse multiple times, so a "dynamically
generated bit mapped index" is a little bit of anathema. As a corollary,
does a hash table built during a hash join then also qualify as a 'hash
index' ?

Note also the wiki definition of an index.

"When talking about databases, indexing is a technique used by most
current database management systems to speed up particular kinds of
queries (usually by internally generating and storing redundant
information to more quickly locate table entries)."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 04:05 AM
kenfar
 
Posts: n/a
Default Re: Bitmap indexes

>> DB2 handles bitmap indexes differently than Oracle - it generates
them
>> dynamically.

> I guess it comes down to what your definition of an index is.


The pros & cons of each strategy are up for debate. But given past
experience, not a pleasant debate. Since it would probably be nothing
more than a rehashing of a thread for a year ago, anyone can google
for it if they're interested.

> Note also the wiki definition of an index.


Wikipedia is pretty cool, but its info is spotty.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 04:05 AM
kenfar
 
Posts: n/a
Default Re: Bitmap indexes

Sorry about that, didn't realize that the infocenter url didn't have
the search criteria in it.

Here's the full url to infocenter:
http://publib.boulder.ibm.com/infoce...lp/conhow2.htm

>From there search on star joins - and you'll find bitmap index

operations described within the article 'Strategies for selecting
optimal joins'

ken

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 04:05 AM
Troels Arvin
 
Posts: n/a
Default Re: Bitmap indexes

On Tue, 08 Mar 2005 09:35:41 -0800, kenfar wrote:

> Here's the full url to infocenter:
> http://publib.boulder.ibm.com/infoce...lp/conhow2.htm
>
>>From there search on star joins - and you'll find bitmap index

> operations described within the article 'Strategies for selecting optimal
> joins'


This URL looks like it's e-mail/news-safe:
http://publib.boulder.ibm.com/infoce...n/c0005314.htm

--
Greetings from Troels Arvin, Copenhagen, Denmark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 04:05 AM
Mark A
 
Posts: n/a
Default Re: Bitmap indexes

"Mark Townsend" <markbtownsend@comcast.net> wrote in message
>
> I guess it comes down to what your definition of an index is.
>
> To me an index is stored for reuse multiple times, so a "dynamically
> generated bit mapped index" is a little bit of anathema. As a corollary,
> does a hash table built during a hash join then also qualify as a 'hash
> index' ?
>
> Note also the wiki definition of an index.
>
> "When talking about databases, indexing is a technique used by most
> current database management systems to speed up particular kinds of
> queries (usually by internally generating and storing redundant
> information to more quickly locate table entries)."
>

If one were to look at decision support benchmarks published by the TPC, one
would see that DB2 does very well in terms of performance against all
competitors. Database vendors use different methods to achieve their
results, and 99.99% of the time it is foolish for customers to try and
predict how an database product will perform just by looking at its
"feature" list.

http://www.tpc.org/tpch/results/tpch_perf_results.asp

If you don't like the TPC benchmark, conduct your own. Don't rely on
"feature list" to understand the internals of how the database achieves its
performance.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 04:06 AM
Mark Townsend
 
Posts: n/a
Default Re: Bitmap indexes

>From there search on star joins - and you'll find bitmap index
> operations described within the article 'Strategies for selecting
> optimal joins'


Right - and that's sort of my point. In Oracle parlance we would call
this a bit mapped join (for which Oracle provides bit mapped join
indexes). Orthogonal to but not the same as a bit mapped index. Note
that it helps optimize the "fact to multiple dimensions" join problem,
especially where your predicates are based on the dimensional values (as
do bit mapped join indexes in Oracle), but doesn't help much with
census style queries solely against the fact table (where a bit mapped
index would).

Redbrick does bit map indexes a la Oracle, and IBM now owns Redbrick,
which presumably gives them a clear and present IPR to do full BMIs if
they want to. So perhaps you will see 'stored' BMIs in some future
version of DB2 ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com