IT lexicon › Database › Variable-length record

Variable-length record

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

A record whose size varies — one record might be 100 bytes, the next 320 bytes, without padding or waste.

Early databases stored records as fixed-size blocks. A fixed-length record is always exactly the same size — efficient to address, but wasteful for data that naturally varies. Variable-length records let a file hold a 10-byte record and a 1000-byte record side by side without filling the small one with padding.

The tradeoff is complexity: updating a record that grows can't happen in place, and record boundaries must be marked explicitly. Indexed systems like KSAM and later relational databases must track record starts and lengths. This made them slower than fixed-length records, but also less wasteful. Storage was expensive enough that variable-length made sense.

← Back to the lexicon