Denormalization in Databases | Database Management System (DBMS) - Computer Science Engineering (CSE) PDF Download

Denormalization in Databases

Denormalization is a database optimization technique in which we add redundant data to one or more tables. This can help us avoid costly joins in a relational database. Note that denormalization does not mean not doing normalization. It is an optimization technique that is applied after doing normalization.
In a traditional normalized database, we store data in separate logical tables and attempt to minimize redundant data. We may strive to have only one copy of each piece of data in database.
For example, in a normalized database, we might have a Courses table and a Teachers table. Each entry in Courses would store the teacherID for a Course but not the teacherName. When we need to retrieve a list of all Courses with the Teacher name, we would do a join between these two tables.
In some ways, this is great; if a teacher changes his or her name, we only have to update the name in one place.
The drawback is that if tables are large, we may spend an unnecessarily long time doing joins on tables.
Denormalization, then, strikes a different compromise. Under denormalization, we decide that we’re okay with some redundancy and some extra effort to update the database in order to get the efficiency advantages of fewer joins. 

1. Pros of Denormalization 
  • Retrieving data is faster since we do fewer joins
  • Queries to retrieve can be simpler(and therefore less likely to have bugs), since we need to look at fewer tables.
2. Cons of Denormalization  
  • Updates and inserts are more expensive.
  • Denormalization can make update and insert code harder to write.
  • Data may be inconsistent. Which is the “correct” value for a piece of data?
  • Data redundancy necessitates more storage.

In a system that demands scalability, like that of any major tech companies, we almost always use elements of both normalized and denormalized databases.

The document Denormalization in Databases | Database Management System (DBMS) - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Database Management System (DBMS).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
62 videos|66 docs|35 tests

Top Courses for Computer Science Engineering (CSE)

62 videos|66 docs|35 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

study material

,

MCQs

,

Semester Notes

,

ppt

,

Viva Questions

,

Denormalization in Databases | Database Management System (DBMS) - Computer Science Engineering (CSE)

,

Important questions

,

practice quizzes

,

Previous Year Questions with Solutions

,

shortcuts and tricks

,

Sample Paper

,

Denormalization in Databases | Database Management System (DBMS) - Computer Science Engineering (CSE)

,

Summary

,

Extra Questions

,

Free

,

mock tests for examination

,

past year papers

,

video lectures

,

Objective type Questions

,

pdf

,

Exam

,

Denormalization in Databases | Database Management System (DBMS) - Computer Science Engineering (CSE)

;