3

I don't understad why bitmasps indexes are useful:

Ident. Name Gender  Bitmaps
                    F     M
1   Ann     Female  1   0
2   John    Male    0   1
3   Jacob   Male    0   1
4   Pieter  Unsp.   0   0
5   Elise   Female  1       0

If query need to find all person with some Gender - it is clear. But when e.g. need to find all that name starts from "J" ?

1 Answer 1

6

Bitmaps are generally useful only for columns like Gender where the number of distinct values is fairly small. You would not use a bitmap index on names. They are also more useful in data warehousing than in OLTP databases due to the higher cost of maintaining bitmap indexes.

One advantage of bitmap indexes is that a number of them can be ANDed and ORed together to answer queries very efficiently.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.