IT lexicon › Database › Hash File

Hash File

Database På svenska → Updated: 2026-11-11

A file organization scheme that uses a hash function to place records directly on disk.

A hash file computes a hash value from a search key and maps it directly to a disk location or "bucket", enabling O(1) average-case lookup. But it sacrifices sequential access and suffers from classic hashing problems: collisions, skew, and uneven distribution. Hash files were ubiquitous in early database systems before B-trees took over as the dominant index structure.

← Back to the lexicon