Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk5 min

Database Normalization vs. Denormalization: When to Use Each

Normalize first to keep authoritative facts consistent; denormalize selectively when measured workload gains outweigh the cost of maintaining copies or derived data.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start with a normalized relational design that keeps each current fact in one authoritative place. Denormalize only when measurements show that an important query or repeated calculation is costly enough to justify the extra work of keeping duplicated or precomputed data correct. In document databases, choose embedding, references, or a hybrid model according to how data is read, changed, and expected to grow.

What normalization and denormalization mean

Normalization: keep each fact in its proper place

Normalization organizes related information into subject-based tables and expresses relationships between them. The aim is to reduce unnecessary repetition and the risk that copies of the same fact drift apart. Microsoft’s database-design guide describes normalization as a refinement of a preliminary schema. It explains first normal form as having one value at each row-and-column intersection, rather than a list of values in a cell.

A normalized design may require joins to assemble information for a screen or report. That is a tradeoff, not proof that the schema is too slow: whether the query is costly depends on the operation, data, indexes, and database engine.

Denormalization: store a useful copy or result

Denormalization deliberately adds redundant data or saves a derived result to simplify frequent reads or avoid repeating a calculation. Microsoft Learn defines it as “the practice of adding redundant data to your schema, usually in order to eliminate joins when querying.” For example, an application might calculate a blog’s average post rating each time it is requested, or maintain a precomputed average for retrieval.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The saved query work comes with obligations: the design must specify how copies or derived values are updated, how stale they may become, and how they can be repaired or rebuilt. Denormalization does not remove complexity; it moves some of it from reads into writes and data maintenance.

Which approach is better for performance?

Neither is universally faster. A normalized schema may involve more joins, but the real cost depends on query shape, indexes, workload, engine, and consistency requirements. Redundant data can make a targeted read simpler, while adding storage, index, refresh, and write-maintenance costs. Measure representative reads and writes rather than using join count as a performance verdict.

Microsoft’s EF Core performance guidance emphasizes that results vary with the query and number of tables. It includes a narrow 2023 benchmark for inheritance mapping—not a general comparison of normalized and denormalized schemas. In that test, loading all rows from a seven-type hierarchy with 5,000 seeded rows per type (35,000 total) produced mean times of 149.0 ms for TPH, 312.9 ms for TPT, and 158.2 ms for TPC. Those figures describe that specific EF Core scenario and should not be used to predict performance for another workload.

How to decide: a practical workflow

  1. Define the facts and invariants. Identify which facts have one authoritative current value, and model those clearly before optimizing.
  2. List important operations. Record the reads and writes that matter, how often they run, which data they access together, and how often that data changes.
  3. Measure the actual workload. Inspect query plans and test with realistic data and concurrency. Include write performance and resource costs, not just read latency.
  4. Target a demonstrated hotspot. If an important operation remains costly, test a specific remedy: a summary value, read model, database-supported view, or suitable document embedding.
  5. Design the maintenance path. Name the authoritative copy, update or refresh method, acceptable staleness, failure behavior, validation, and rebuild or recovery process. Retest reads and writes after the change.
  6. Keep the simpler model unless the gain warrants the cost. If the measured improvement does not justify added consistency and operational work, do not denormalize.

Relational databases: normalize the source of truth, optimize selectively

For a relational database, a practical default is normalized authoritative data with selective read models or summaries where evidence supports them. A copied value can have a business purpose as well as a performance purpose, so distinguish the two.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Example: a product name on an order

Suppose an order detail needs to show a product name. The product table can hold the current name once, with order lines joining to it. But an order may need to preserve the name as it appeared when purchased. In that case, storing a name snapshot on the order line expresses historical meaning: later product renames should not rewrite the purchase record. That deliberate snapshot is different from an accidental duplicate of a value that is supposed to stay current.

Views and precomputed results vary by engine

Do not assume that a database view removes maintenance work or behaves the same across engines. Microsoft’s EF Core guidance notes that PostgreSQL materialized views need refreshing to reflect changes in underlying data, while SQL Server indexed views are updated as source data changes and can make those updates slower, subject to feature restrictions. Check the documentation for the exact engine and version before choosing an implementation.

Rank #3
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Document databases: model around access patterns

Document databases have related design choices, but they are not simply relational schemas with table joins removed. MongoDB’s modeling guidance says, “A core principle of data modeling in MongoDB is that data that’s accessed together should be stored together.” Its documentation supports both embedding related data in a document and referencing separately stored entities.

When embedding is a good fit

Embedding is often appropriate for a bounded, one-to-few relationship whose data is commonly read and updated together. A suitable embedded model can keep an operation within one document, where MongoDB provides single-document atomicity. Avoid embedding a relationship that can grow without bound or whose members need independent access and lifecycle management.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When to reference or use a hybrid

References are often preferable when related data changes independently, grows without bound, or is frequently queried on its own. A hybrid design can embed a small, commonly read snapshot while referencing the independently managed entity. Choose based on actual access and change patterns rather than treating all duplication as wrong or all embedding as beneficial.

MongoDB supports distributed transactions for operations spanning documents, but its documentation notes that they generally cost more than single-document writes. In Azure Cosmos DB, foreign-key constraints are not enforced across documents; application logic or another mechanism must validate such links. Verify the consistency and transaction behavior of the specific database you operate.

Questions to compare before changing the model

  • Read pattern: Are related facts usually fetched together, or queried independently?
  • Write pattern: How often does each fact change, and how many copies would need updating?
  • Integrity: Which constraints does the database enforce, and what validates references or duplicated values?
  • Atomicity: Can the change fit within one document or aggregate, or does it span separate records?
  • Measured cost: What do representative read and write tests show, including index storage, memory, refresh work, and contention?
  • Growth and lifecycle: Could an embedded collection grow without bound, and what retention or archival rule applies?

MongoDB also cautions that indexes can improve query performance while consuming storage and memory and adding write cost. Include those effects when testing a proposed model rather than evaluating query latency in isolation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.