Skip to content
EngineeringAll explainers

Data Structure Diagram (DSD): Definition, Symbols, and Examples

A plain-language engineering reference on data structure diagrams (DSD): how Bachman diagrams model record types and owner-member sets, a worked example, and how a DSD differs from an Entity-Relationship Diagram (ERD) or Data Flow Diagram (DFD).

Published: Updated: Reading time: 6 min
On this page

A data structure diagram (DSD) is a graphical notation that models the record types in a data store and the directed owner-to-member relationships that connect them. Charles Bachman introduced it in 1969, which is why it's often called a Bachman diagram.

Bachman drew each record type as a block and each relationship (a CODASYL "set") as an arrow from owner to member. Engineers still use the same idea in custom software development, next to Entity-Relationship Diagrams (ERDs) and JSON or Protobuf schemas, when they design relational schemas, graph models, event payloads and data pipelines.

Core components and symbols

Many DSD conventions list attributes inside the box, keeping the outside free for arrows. That's the main visual difference from early Chen-style ERDs, where attributes hang off the entity as separate ovals.

ComponentVisual NotationArchitectural Purpose
Entity (Record Type)Rectangular box with a headerRepresents a distinct data record, table, or document collection (such as Account, Transaction, or LedgerEntry).
Attributes (Data Elements)Listed rows inside the entity box (a later convention; Bachman's 1969 blocks carried only the record name)Defines the fields, data types, and constraints stored within the record (such as account_id: UUID, balance_minor: int64).
Primary / Sort KeyUnderlined or badged attributeIdentifies the unique key or ordering key used to locate a record in an index.
Owner-Member Arrow (Set)Directed arrow from Owner (1) to Member (N)Shows the set relationship and traversal direction from a parent record to its dependent child records, implemented as foreign keys, pointers, or embedding depending on the store.

Data structure diagram example

Take a simple order system. A customer owns orders, and each order owns its line items. In DSD terms that's two sets, both one-to-many:

Record typeFieldsOwner of
Customercustomer_id (PK), email, created_atOrders, through a "places" set (1 to N)
Orderorder_id (PK), customer_id, status, placed_atLine items, through a "contains" set (1 to N)
LineItemline_item_id (PK), order_id, sku, qty, unit_price_minorNothing (leaf record)

Read from Customer down to LineItem, that's the main access path. If your app mostly reads that way, the diagram already tells you which foreign keys need indexes.

Data structure diagram vs ERD vs DFD

Teams often put these three notations on the same whiteboard, and mixing them up leads to schema arguments during system integration. Here's how they differ.

DimensionData Structure Diagram (DSD)Entity-Relationship Diagram (ERD)Data Flow Diagram (DFD)
Primary FocusLogical record layout and owner-member traversalHigh-level conceptual business entities and cardinalityMovement and transformation of data across processes
State of DataData at rest (storage & memory structure)Data at rest (domain relationships)Data in motion (inputs, transforms, outputs)
Attribute PlacementInside the entity box in many conventionsOutside the box (Chen notation) or tabular (Crow's Foot)Omitted or attached to data-flow arrows
Common UsesNetwork and graph models, document schemas, record-level access pathsDomain modeling, relational SQL schema designAPI boundary mapping, threat modeling, ETL pipeline design

DSD vs ERD

Peter Chen's 1976 Entity-Relationship model proposed a unified conceptual view that sits above the network and relational models of the time. Modern Crow's Foot ERDs, as drawn in tools like dbdiagram.io or DataGrip, resemble both traditions. They list attributes and types inside the entity box, like many DSDs, and they mark cardinality on the lines with graphical symbols: a crow's foot for "many", a bar for "one", a circle for "optional". (The 1..* and 0..1 labels you sometimes see are UML multiplicity, not Crow's Foot.)

DSD vs DFD

A Data Flow Diagram (DFD) shows where data goes and what transforms it. Think of a webhook payload passing through a validation worker into PostgreSQL. A DSD shows how that data is structured inside the payload or table, for example how an Order record holds LineItem entries and links back to a Customer.

When engineers use data structure diagrams today

Why bother, when SQL DDL and Crow's Foot ERDs cover most relational work? Because a DSD gives the team a shared picture of access paths, which is the part a list of tables hides. Classic Bachman DSDs, and diagram styles in the same tradition, still earn their place in a few situations:

  1. Document vs relational schema design. In MongoDB, DynamoDB or Firestore, you have to decide whether to embed child records inside a parent document or reference them, the same trade-off behind many Supabase vs Firebase evaluations and multi-tenant SaaS development. DynamoDB in particular pushes you to design around access patterns first.
  2. Graph databases. Neo4j stores relationships as first-class directed elements and follows them during traversal instead of computing joins. An owner-to-member arrow maps onto that model almost directly.
  3. API and event contracts. Deeply nested OpenAPI, GraphQL and Avro or Protobuf schemas are easier to review as a tree diagram before you generate TypeScript or Go types. Strictly, that's a schema diagram in the DSD spirit, not Bachman notation (see API integration).
  4. In-memory structures. Order books, caches and transaction management engines get documented with box-and-arrow diagrams of hash tables, B-trees and linked lists. Those are CS data-structure diagrams, a cousin of the Bachman kind, so label them as such.

How to design one

A few habits keep a DSD useful after technical discovery or software development consulting:

  • Draw arrows along your real queries. Point them in the direction your application traverses most often. For example, if most reads fetch Organization -> Workspace -> Project, make that hierarchy explicit and index the matching foreign keys.
  • Put identity first. Primary keys, natural keys and version timestamps go at the top of each box, so anyone can see how records get deduplicated in a data pipeline.
  • Link flows to structures where it matters. When a DFD introduces an important data store or message topic, point it at the DSD or schema contract for that store.

Teams modernizing hierarchical or network databases, or untangling a monolithic SQL schema, often start with a short architecture discovery. At Idealogic that's usually a 2-to-4-week sprint run by a small team, about $18,000 to $25,000 at $50 to $75/hr CEE senior rates. For the wider re-platforming budget, see our cloud migration cost benchmarks.

Scoping legacy database modernization, schema architecture, or a data-intensive platform?
Our senior architects ($50-$75/hr CEE; Discovery Sprints from $18k) audit legacy data models, design multi-tenant schemas and plan production migrations with you.
Book an architecture review

Frequently asked questions

  • A data structure diagram (DSD) is a notation that models record types and the directed owner-to-member relationships, or sets, that connect them. Charles Bachman introduced it in 1969. His original blocks carried only record names; many later conventions also list attributes inside each box instead of drawing them as external ovals.

  • It's another name for a data structure diagram, after Charles Bachman, who described the notation in a 1969 paper written for CODASYL. Record types are drawn as blocks and each set is an arrow from the owner record to its member records. The name came later; Bachman himself called them data structure diagrams.

  • An Entity-Relationship Diagram (ERD) models business entities and the cardinality between them at a conceptual level. A data structure diagram works closer to storage: it shows how fields are grouped inside records and which owner-member paths the application follows, whether those links end up as foreign keys, pointers or embedded documents. Modern Crow's Foot ERDs borrow the inside-the-box attribute style, so the two often look alike.

  • A data structure diagram shows the static organization of data at rest inside records and tables. A data flow diagram shows data in motion: how it moves between processes, external actors and data stores, and what transforms it along the way.

  • Yes, though rarely under the strict 1969 notation. Engineers use DSD-style diagrams to plan document and graph database models, to review nested API and event schemas, and to show access paths that a plain list of SQL tables hides.

Still unanswered
Ask us directly

A senior engineer replies under 4 hours.