Intermediate Topic 23 of 51 Databases
Denormalization
Deliberately adding redundancy to speed reads.
How it works
Denormalization deliberately adds redundancy to a normalized schema to make reads faster, for example by copying a customer's name into the orders table, storing precomputed totals, merging tables or keeping summary tables. It reduces joins and speeds read-heavy queries, but each copy must be kept in sync, increasing write cost and the risk of inconsistency.
Step-by-step walkthrough
- Highly normalized data needs many joins.
- Reports on huge data become slow.
- Copy a column into the table that reads it often.
- Reads become one lookup.
- The price is extra storage and keeping copies in sync.
Where it is used
Reporting tables, data warehouses with star schemas, caching of derived counts such as likes, and NoSQL document designs that embed related data use denormalization.
Common pitfall
Duplicated data can drift if updates miss a copy, so use triggers, application logic or batch jobs to maintain it, and decide which copy is authoritative. Do it only after measuring a real performance problem, and not as a first step. Document every denormalized field and why it exists, and consider materialized views as an alternative.
Where it fits in the course
Denormalization is topic 23 of 51 in Databases, rated Intermediate. It follows Normal Forms. The next topic is Transactions.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Databases quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Databases quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Denormalization?
Where do people use Denormalization?
What is the most common mistake with Denormalization?
What should I learn before this topic?
How can I practice it?
Is Denormalization hard to learn?
How long does it take to learn Denormalization?
Which topics are related to Denormalization?
What should I study after Denormalization?
Related topics
- Normal Forms (Databases)
- Transactions (Databases)
- Normalization (Databases)
- ACID Properties (Databases)