Bitmap index
A bitmap index is a special kind of index that stores the bulk of its data as bit arrays (bitmaps) and answers most queries by performing bitwise logical operations on these bitmaps. The most commonly used indexes, such as B+trees,
are most efficient if the values they index do not repeat or repeat a
smaller number of times. In contrast, the bitmap index is designed for
cases where the values of a variable repeat very frequently. For
example, the gender field in a customer database usually contains two
distinct values: male or female. For such variables, the bitmap index
can have a significant performance advantage over the commonly used
trees.
Dense index
A dense index in databases is a file with pairs of keys and pointers for every record in the data file. Every key in this file is associated with a particular pointer to a record in the sorted data file. In clustered indices with duplicate keys, the dense index points to the first record with that key.Sparse index
A sparse index in databases is a file with pairs of keys and pointers for every block in the data file. Every key in this file is associated with a particular pointer to the block in the sorted data file. In clustered indices with duplicate keys, the sparse index points to the lowest search key in each block.Reverse index
A reverse key index reverses the key value before entering it in the
index. E.g., the value 24538 becomes 83542 in the index. Reversing the
key value is particularly useful for indexing data such as sequence
numbers, where new key values monotonically increase.
No comments:
Post a Comment