Interview kitsBlog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2026 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Databases
Databasesmedium

Normalization vs denormalization — what’s the trade-off?

Tags
#normalization#denormalization#schema-design
Back to categoryPractice quiz

Answer

Normalization reduces redundancy and update anomalies by splitting data into related tables. Denormalization duplicates some data to speed up reads and reduce joins, at the cost of harder writes and consistency management.

Advanced answer

Deep dive

**Normalization** organizes data to reduce redundancy and anomalies (classic normal forms like 1NF/2NF/3NF). Benefits:

  • one source of truth,
  • fewer inconsistencies,
  • simpler updates,
  • smaller rows.

Cost:

  • more joins,
  • more complex queries,
  • sometimes slower reads for read-heavy workloads.

**Denormalization** intentionally duplicates or precomputes data to make common reads fast:

  • fewer joins,
  • simpler read queries,
  • can match access patterns (feeds, dashboards, analytics).

Cost:

  • harder writes (must update multiple places),
  • risk of inconsistency,
  • more storage.

Practical guidance

  • Start normalized for OLTP systems.
  • Denormalize selectively based on measured bottlenecks (use `EXPLAIN` and real traffic).
  • Consider alternatives: materialized views, caching layers, read replicas.

Related questions

Databases
Denormalization: when might you do it and what’s the trade‑off?
#database#denormalization#performance
Databases
Database Normalization (1NF, 2NF, 3NF)?
#normalization#database-design#theory
MongoDB
Embedding vs referencing: when would you embed documents in MongoDB?
#mongo#schema-design

Common pitfalls

  • Premature denormalization before you know query patterns.
  • Forgetting multi-tenant boundaries when duplicating data.
  • Using denormalization as a replacement for proper indexing/query tuning.
#embedding
MongoDB
Why are unbounded arrays inside MongoDB documents dangerous?
#arrays#schema-design#limits
MongoDB
Embedding vs referencing in MongoDB schema design?
#embedding#referencing#schema-design