IT lexicon › Database › Set structure

Set structure

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

CODASYL's primary relationship concept: a named link from an owner record to zero or more member records.

A set structure is declared in the schema with a name, an owner record type, and a member record type. At runtime, an owner record can be linked to many member records via a navigable chain. Unlike the relational model's purely mathematical relations, CODASYL set structures represent an explicit pointer-chased path through memory—the programmer must navigate the chain to find related data. CODASYL also permitted multiple sets between the same record types, giving fine-grained control but requiring manual traversal logic. The practical difficulty was that updates and deletions were not always automatic; it was easy to leave orphaned records dangling when a parent was removed.

← Back to the lexicon