0
0
DBMS Theoryknowledge~5 mins

Dense vs sparse indexes in DBMS Theory - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is a dense index in database indexing?
A dense index has an index entry for every record in the data file. This means each search key value appears in the index along with a pointer to the actual record.
Click to reveal answer
beginner
What is a sparse index in database indexing?
A sparse index has index entries only for some records, usually one per data block or page. It points to the first record in each block, not every record.
Click to reveal answer
intermediate
How does a dense index affect search speed compared to a sparse index?
A dense index allows faster searches because it has an entry for every record, so the exact record can be found quickly. A sparse index may require scanning within a block after locating the pointer.
Click to reveal answer
intermediate
What is a key advantage of using a sparse index?
A sparse index uses less storage space and requires less maintenance because it stores fewer index entries, making it more efficient for large datasets where full indexing is costly.
Click to reveal answer
intermediate
In which scenario is a dense index preferred over a sparse index?
Dense indexes are preferred when fast, direct access to every record is needed, such as in primary key indexing or when records are frequently searched individually.
Click to reveal answer
Which type of index contains an entry for every record in the data file?
ADense index
BSparse index
CClustered index
DHash index
What is a main benefit of a sparse index compared to a dense index?
AFaster search for every record
BUses less storage space
CHas an entry for every record
DRequires more maintenance
If you want quick access to every record, which index type should you choose?
ASparse index
BNo index
CDense index
DBitmap index
Sparse indexes usually have entries pointing to:
AThe first record in each block
BEvery record
CRandom records
DOnly deleted records
Which index type requires scanning within a block after locating the pointer?
AB-tree index
BDense index
CHash index
DSparse index
Explain the difference between dense and sparse indexes in simple terms.
Think about how many records each index points to.
You got /4 concepts.
    When would you choose a sparse index over a dense index? Give reasons.
    Consider trade-offs between speed and storage.
    You got /4 concepts.