IT lexicon › Database › Random Access Method

Random Access Method

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

A file organization method where records can be read directly from any position without scanning earlier records.

A heap file or hash table is a random access method — if you know a record is at byte 5000, you can jump directly there without reading everything before it. This is fast for direct lookups but slow for range scans ("all records between A and Z").

The opposite is sequential access, where you must read from the beginning. Earlier systems like IMS and CODASYL were often sequential or semi-sequential (ISAM is a hybrid). Modern databases use B-trees and hash indexes to combine the benefits of both — O(log N) random access with efficient range scans. This evolution was essential as workloads diversified and applications needed both types of access patterns.

← Back to the lexicon