Physical Data Models: Tables and Storage

Physical design turns a logical contract into concrete platform structures.

BeginnerIntermediateExpert · 4 min read · Last updated:

What it is

A physical data model describes how a design is implemented in a specific platform: tables, columns, data types, constraints, indexes, partitions, file formats and other storage choices.

Start with the logical contract

Before choosing storage details, confirm the entity definitions, keys, relationships, workload, security classification, volume, freshness and retention needs. A physical model should implement the logical design and workload requirements, not silently redefine them.

Typical physical choices

ChoicePurposeTrade-off
Data typeRepresent values and limit invalid inputPrecision, portability and storage use
ConstraintEnforce local integrity rulesWrite cost and cross-platform support
Index or clusteringSupport access pathsRead speed versus write and storage overhead
PartitioningOrganize large data for operationsMaintenance and skew risk
File layoutSupport analytical scans and updatesFormat, compaction and interoperability

Design for workload, not fashion

Operational lookups, analytical scans and streaming writes have different access patterns. Benchmark with representative queries and data, and record the workload assumptions. A physical choice that helps one query may make ingestion, maintenance or another consumer worse.

Include lifecycle and security

Classify sensitive fields, define who can access them and choose retention and deletion behavior. Physical storage copies, backups, indexes and derived tables may all need to follow the same policy. Confirm capabilities and limits against the selected platform's current documentation.

Implementation depth Examples, failure cases and review points

Translate logical design to physical structures

A physical model describes how a specific platform stores, validates and serves data. The logical model says that an order has lines and each line refers to a product. The physical design chooses tables, columns, data types, constraints, indexes, partitions or file organization to implement that meaning under a workload. Keep a mapping between logical concepts and physical objects so implementation changes do not erase the business rationale.

For each object, document its grain, key, source, update behavior, retention expectation and consumers. Choose data types with enough range and precision for the domain. Monetary values need a defined currency and precision; timestamps need a defined time zone or an explicit UTC convention; text fields need a length and normalization policy where relevant.

Let the workload guide storage decisions

Workload needPhysical concernValidation
Frequent point lookupsKey choice and indexes or clusteringMeasure lookup latency and write overhead
Large analytical scansPartitioning, pruning and columnar layoutTest representative scan and aggregate queries
High write volumeTransaction scope, concurrency and ingestion throughputLoad test with realistic contention
Historical reconstructionEffective time, event time and retention storageRebuild a past view from retained records
Flexible semi-structured dataSchema validation, indexing and evolutionTest old and new payload versions

Use constraints and migrations intentionally

Where the platform supports it, enforce essential uniqueness and referential rules close to the data. In distributed or analytical systems, enforcement may happen through ingestion checks or quality pipelines instead. State where each rule is guaranteed, how failures are surfaced and who repairs them. A rule documented in a diagram but never enforced or monitored is easy to violate.

Plan physical schema changes as migrations. For a breaking field change, a staged approach may add the replacement, populate and validate it, migrate consumers, then remove the old representation after dependency checks. Backfills should be restartable and observable. Test rollback or forward-recovery behavior on representative data before production rollout.

Avoid platform-first design

Technology features can be useful, but adopting them without a workload can create operational cost and complexity. Do not add partitioning merely because a table is large; identify the access predicate and measure pruning. Do not select a key solely because it is the default type; consider uniqueness scope, generation, exposure and migration. Re-evaluate these decisions when scale or query patterns change.

  • Can every physical object be traced to a logical concept or workload?
  • Are type range, precision, timezone and null semantics explicit?
  • Are constraints enforced or monitored somewhere reliable?
  • Are migrations, backfills and recovery behavior documented?
  • Were performance choices measured under representative load?

Continue to Data Types, Constraints and Nullability and Data Platform Migration and Modernization.

Deploy and monitor physical model drift

Compare deployed schemas to the approved model and detect manual changes, missing constraints, or index divergence. Track migration version and environment. Test restores and schema upgrades on representative data. Document platform-specific behavior that affects type coercion, transaction boundaries, and uniqueness.

Review query plans and resource use after data volume or access patterns change. Avoid adding physical structures without measuring benefit and maintenance cost. Keep the logical contract stable where possible so consumers are insulated from tuning.

Operate physical models

Monitor schema drift, constraint failures, index health, storage growth, and query plans. Assign a maintainer for migrations and backups. Document how the deployed schema maps to the logical model and where platform behavior differs.

Review physical choices after workload changes and verify that tuning does not alter semantics. Keep migrations tested and versioned.