0
0
DBMS Theoryknowledge~5 mins

Bitmap indexes in DBMS Theory - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a bitmap index?
A bitmap index is a type of database index that uses bit arrays (bitmaps) to quickly answer queries, especially useful for columns with a small number of distinct values.
Click to reveal answer
beginner
How does a bitmap index represent data internally?
It uses a series of bits where each bit corresponds to a row in the table. A bit is set to 1 if the row has the value represented by that bitmap, otherwise 0.
Click to reveal answer
intermediate
Why are bitmap indexes efficient for columns with low cardinality?
Because they use compact bit arrays, bitmap indexes require less space and can quickly combine bitmaps using bitwise operations for queries on columns with few distinct values.
Click to reveal answer
intermediate
What types of queries benefit most from bitmap indexes?
Queries that filter on multiple low-cardinality columns, such as AND, OR, and NOT conditions, benefit because bitmaps can be combined quickly with bitwise operations.
Click to reveal answer
intermediate
What is a limitation of bitmap indexes?
Bitmap indexes are not efficient for columns with high cardinality or for tables with frequent updates, because bitmaps can become large and costly to maintain.
Click to reveal answer
What kind of data is best suited for bitmap indexes?
AColumns with few distinct values
BColumns with many unique values
CLarge text columns
DColumns with continuous numeric values
How does a bitmap index speed up query processing?
ABy compressing text data
BBy sorting data physically
CBy caching entire tables
DBy using bitwise operations on bit arrays
Which operation is NOT typically efficient with bitmap indexes?
AAND
BFrequent row insertions
COR
DNOT
What does each bit in a bitmap index represent?
AA row in the table
BA column in the table
CA database user
DA query condition
Why might bitmap indexes use less storage space than other indexes?
ABecause they avoid indexing
BBecause they store full row data
CBecause bits are compact and can be compressed
DBecause they use text compression
Explain how bitmap indexes work and why they are useful for low-cardinality columns.
Think about how bits can quickly show which rows match a value.
You got /5 concepts.
    Describe the main advantages and limitations of bitmap indexes in databases.
    Consider when bitmap indexes shine and when they struggle.
    You got /5 concepts.