Skip to content

Normalization or denormalization: when should you choose each?

Normalization and denormalization are database design choices that balance redundancy, the consistency of updates, and how quickly a database can read its data.

Normalization is a way to organize data in a relational database, a database made of linked tables, to reduce unnecessary repetition and the problems that arise when information changes. Denormalization, by contrast, adds repetition or stored results to make certain reads easier, accepting the work needed to keep those copies current. For example, a database can store a customer's current address in a customer table and connect it to orders through an identifier. A list built for lookups can instead pair address and order on every row. In the first case, a read may need a join, an operation that combines tables; in the second, someone must decide how and when to update the copies. Normal forms are formal rules for assessing table structure, not a guarantee that the data is correct or that every query will be fast. The choice depends on the operations actually performed, the cost of changes, and how much stale information is acceptable.

See also: OLAP vs OLTPOLAP covers analysis across many records and OLTP covers day-to-day transaction processing; the two differ in read, write, and response-time requirements.

What changes in practice

If the same current address appears on several orders, an incomplete update can leave conflicting values. Storing customer details separately reduces this update anomaly; a foreign key, a reference the database enforces, can ensure that each order points to an existing customer when the field is required. The PostgreSQL documentation on constraints describes these checks. Structure alone cannot ensure valid values, so quality rules are still needed.

Reading normalized data may require joins. Repeating some fields can avoid those joins for a particular query, but requires storage and update procedures. Codd's relational model already frames stored redundancy as extra space and update time traded for possibly faster reads, with no guaranteed gain. An index, a structure that helps locate rows, can also speed up a join: the PostgreSQL documentation notes that maintaining it adds its own overhead to writes.

An enterprise example

A distributor records customers and orders in linked tables. For a sales dashboard, it prepares a materialized view, a saved query result that can be reused. The PostgreSQL materialized view documentation shows a sales summary that can be refreshed periodically and warns that the summary may not be current. The dashboard owner must therefore agree on refresh frequency, error checks, and a recovery procedure. If the address on an order records the original delivery, it is a historical fact, separate from the current address, and should not be overwritten just to remove repetition.

Why it matters for decision makers

Before approving a denormalized copy, ask for measurements of the queries that justify it against a properly indexed normalized version: read times, update costs, storage, and acceptable lag for the copies. Specify who owns the source and how to detect an outdated copy. The distinction between analytical and transactional systems helps describe their uses, but does not dictate one structure. For analytical design options, the comparison between a wide table and dimensional modeling addresses a related but separate decision.

Frequently asked questions

No. It reduces problematic repetition according to the model's rules; repeated identifiers and historical values can serve purposes of their own.

When an important query still benefits from a copy or precomputed result after proper indexing, and the measured gain justifies the storage, update work, and possible lag.
  • OLAP vs OLTPOLAP covers analysis across many records and OLTP covers day-to-day transaction processing; the two differ in read, write, and response-time requirements.
  • Star schemaA star schema organizes data for analysis into a central fact table, which holds the measurements, and into dimension tables that describe their context.
  • One Big Table (OBT) vs Dimensional ModelingOBT and dimensional modeling organize analytical data differently: a single wide table ready to query, or reusable fact and dimension tables for reports.

See it in the universe

If it touches your company's data, getting that data in order is the first thing I do.

See Data Foundations

Or write to me.