Hash index
An index that uses a hash function to find exact key matches quickly, but cannot sort or answer range queries.
A row is located instantly by hashing its key — the hash function points directly to disk location without tree traversal. Very fast for exact lookups ("WHERE id = 123"). But hashes cannot be ordered or range-scanned — "WHERE id > 100 AND id < 200" is inefficient with a hash index because the hash function destroys the key's ordering.
B-tree indexes, which support both exact and range queries, became the standard in almost every classical DBMS from the 1970s onward. Hash indexes resurface when exact-match performance is critical and the query condition is simple — used in Btrieve and later in key-value stores and NoSQL systems.