Denormalization

What is Denormalization?

Denormalization deliberately adds redundancy back, to make reads faster by avoiding joins or repeated calculations. It is a trade-off, made after normalizing and measuring.

Common Techniques

  • Store a computed total: Orders.TotalAmount instead of summing OrderDetails every time.
  • Copy a frequently-read value: Orders.CustomerName for invoices that must show the name at the time of purchase.
  • Summary / reporting tables and materialized views.
  • Star schemas in data warehouses (fact tables + wide dimension tables).

Normalized vs Denormalized

NormalizedDenormalized
Redundancyminimalintentional
Writessimple, consistentmust keep copies in sync (triggers, jobs)
Readsmore joinsfewer joins, faster
Typical useOLTP (transactional apps)OLAP (reporting, analytics)