SlideShare una empresa de Scribd logo
1 de 41
‫الرحيم‬‫الرحمن‬‫هللا‬ ‫بسم‬
By:-
1- Amna Magzoub
2- Selma Yahyia
3- Ala Eltayeb
Denormalization
Objectives:-
 Introduction
 Definition
Why and when to denormalize data
Method of denormalization
Manage denormalization data
Advantages and disadvantages of
denormalization
 References
Introduction
• Result of normalization is a design that is
structurally consistent with minimal
redundancy.
• However, sometimes a normalized database
does not provide maximum processing
efficiency.
• May be necessary to accept loss of some
benefits of a fully normalized design in favor
of performance.
Definition :-
Denormalization is a process of combine two
relation into one new relation.
 Denormalization is the process of taking a
normalized database and modifying table
structures to allow controlled redundancy for
increased database performance.
Cont..
 The argument in favor of denormalization is
basically that it makes retrievals esaier to
express and makes the perform better.
It sometimes claimed to make the database
easier to understand.
When and why to denormailize
Some issues need to be considered before
denormalization:
1- Is the system’s performance unacceptable with fully
normalized data? Meet a client and do some testing.
2- If the performance is unacceptable, will
denormalizing make it acceptable?
3- If you denormalize to clear those bottlenecks, will the
system and its data still be reliable?
Cont…
 Speed up retrievals.
 A strict performance is required.
 It is not heavily updated.
- So, denormalize only when there is a very clear
advantage to doing.
Balancing denormalization issues
Method of denormalization:-
1) Adding Redundant Columns.
2) Adding Derived Columns
3) Combining Tables
4) Repeating Groups
5) Creating extract tables
6) Partitioning Relations
Adding Redundant Columns
• You can add redundant columns to eliminate
frequent joins. For example, if frequent joins
are performed on the titleauthor and authors
tables in order to retrieve the author's last
name, you can add the au_lname column to
titleauthor.
• Adding redundant columns eliminates joins for
many queries. The problems with this solution
are that it:
• Requires maintenance of new column. All
changes must be made to two tables, and
possibly to many rows in one of the tables.
• Requires more disk space, since au_lname is
duplicated.
Adding Derived Columns
• Adding derived columns can help eliminate
joins and reduce the time needed to produce
aggregate values.
• The example shows both benefits. Frequent
joins are needed between the titleauthor and
titles tables to provide the total advance for a
particular book title.
• You can create and maintain a derived data
column in the titles table, eliminating both the
join and the aggregate at run time. This
increases storage needs, and requires
maintenance of the derived column whenever
changes are made to the titles table.
Combining Tables
• If most users need to see the full set of joined data
from two tables, collapsing the two tables into one
can improve performance by eliminating the join.
• For example, users frequently need to see the
author name, author ID, and the blurbs copy data
at the same time. The solution is to collapse the
two tables into one. The data from the two tables
must be in a one-to-one relationship to collapse
tables.
More examples:-
Repeating Groups
These repeating groups can be stored as a nested
table within the original table.
example
Creating extract tables
• Reports can access derived data and perform
multi-relation joins on same set of base
relations. However, data the report is based on
may be relatively static or may not have to be
current.
• Possible to create a single, highly
denormalized extract table based on relations
required by reports, and allow users to access
extract table directly instead of base relations.
Partitioning Relations
• Rather than combining relations together,
alternative approach is to decompose them into
a number of smaller and more manageable
partitions.
• Two main types of partitioning:-
horizontal and vertical.
Horizontal :-
Distributing the tuples of relation across a
number of (smaller) partitioning relation.
Vertical :-
Distributing the attributes of a relation a cross a
number of (smaller) partitioning relation(the
primary key duplicated to allow the original
relation to be reconstucted.
Horizanteial:-
•Separate data into partitions so that queries
do not need to examine all data in a table
when WHERE clause filters specify only a
subset of the partitions.
•Horizontal splitting can also be more secure
since file level of security can be used to
prohibit users from seeing certain rows of
data
The example shows how the authors table might
be split to separate active and inactive authors:
Vertical Splitting:
• Vertical splitting can be used when some
columns are rarely accessed rather than other
columns
The example shows how the authors table
can be partitioned.
Vertical Examples
Managing Denormalized Data
Whatever denormalization techniques you use,
you need to develop management techniques
to ensure data integrity. Choices include:
• Triggers, which can update derived or
duplicated data anytime the base data changes.
• Application logic, using transactions in each
application that updates denormalized data to be
sure that changes are atomic.
Cont…
• Batch reconciliation, run at appropriate
intervals to bring the denormalized data back
into agreement.
• If 100-percent consistency is not required at all
times, you can run a batch job or stored
procedure during off hours to reconcile
duplicate or derived data.
• You can run short, frequent batches or longer,
less frequent batches.
Cont…
Advantages vs. disadvantages
Advantages:-
• Precomputing derived data
• Minimizing the need for joins
• Reducing the number of foreign keys in
relations
• Reducing the number of relations.
disadvantages :-
• May speed up retrievals but can slow down
updates.
• Always application-specific and needs to be re-
evaluated in the application changes.
• Can increase the size of relations.
• May simplify implementation in some cases but
may make it more complex in other.
• reduce flexibility.
Summary
 Denormalization aids the process of adding
redundancy to the database to improve performance .
 Denormalize can be done with tables or columns.
 Require aknowledge of how data is being used .
 There are costs of denormalization reduces the
“integrity” of the design ,always slow DML (data
manipulation language) , need more memory space
to store redundant data and required additional
programming to maintain the denormalized data.
References
 Database design & Relational theory, C.J.Date
 Database system .8th edition.
 Data Normalization, Denormalization,and the Forces of Darkness
a white paper by Melissa Hollingsworth.
 www.icard.ru/~nail/sybase/perf/10.88.html
Q & A
Thanks you

Más contenido relacionado

La actualidad más candente

Transaction management and concurrency control
Transaction management and concurrency controlTransaction management and concurrency control
Transaction management and concurrency controlDhani Ahmad
 
Advance Database Management Systems -Object Oriented Principles In Database
Advance Database Management Systems -Object Oriented Principles In DatabaseAdvance Database Management Systems -Object Oriented Principles In Database
Advance Database Management Systems -Object Oriented Principles In DatabaseSonali Parab
 
Query processing-and-optimization
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimizationWBUTTUTORIALS
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data modeljagdish_93
 
Database basics
Database basicsDatabase basics
Database basicsprachin514
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed databaseSonia Panesar
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database systemphilipsinter
 
1.2 steps and functionalities
1.2 steps and functionalities1.2 steps and functionalities
1.2 steps and functionalitiesKrish_ver2
 
File organization 1
File organization 1File organization 1
File organization 1Rupali Rana
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMSkoolkampus
 
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMSkoolkampus
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and BasicsSHIKHA GAUTAM
 

La actualidad más candente (20)

Ordbms
OrdbmsOrdbms
Ordbms
 
Transaction management and concurrency control
Transaction management and concurrency controlTransaction management and concurrency control
Transaction management and concurrency control
 
Advance Database Management Systems -Object Oriented Principles In Database
Advance Database Management Systems -Object Oriented Principles In DatabaseAdvance Database Management Systems -Object Oriented Principles In Database
Advance Database Management Systems -Object Oriented Principles In Database
 
File organization
File organizationFile organization
File organization
 
Query processing-and-optimization
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimization
 
2 phase locking protocol DBMS
2 phase locking protocol DBMS2 phase locking protocol DBMS
2 phase locking protocol DBMS
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
 
trigger dbms
trigger dbmstrigger dbms
trigger dbms
 
Dbms
DbmsDbms
Dbms
 
Database basics
Database basicsDatabase basics
Database basics
 
Datawarehouse and OLAP
Datawarehouse and OLAPDatawarehouse and OLAP
Datawarehouse and OLAP
 
Introduction to distributed database
Introduction to distributed databaseIntroduction to distributed database
Introduction to distributed database
 
Query processing
Query processingQuery processing
Query processing
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
1.2 steps and functionalities
1.2 steps and functionalities1.2 steps and functionalities
1.2 steps and functionalities
 
File organization 1
File organization 1File organization 1
File organization 1
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMS
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 

Destacado

Databases: Denormalisation
Databases: DenormalisationDatabases: Denormalisation
Databases: DenormalisationDamian T. Gordon
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Jargalsaikhan Alyeksandr
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFOum Saokosal
 
The Relational Data Model and Relational Database Constraints
The Relational Data Model and Relational Database ConstraintsThe Relational Data Model and Relational Database Constraints
The Relational Data Model and Relational Database Constraintssontumax
 
Lecture 03 - The Data Warehouse and Design
Lecture 03 - The Data Warehouse and Design Lecture 03 - The Data Warehouse and Design
Lecture 03 - The Data Warehouse and Design phanleson
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraintsKumar
 
Data warehouse-dimensional-modeling-and-design
Data warehouse-dimensional-modeling-and-designData warehouse-dimensional-modeling-and-design
Data warehouse-dimensional-modeling-and-designSarita Kataria
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreterParas Patel
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)Maliha Jahan
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 

Destacado (20)

Denormalization
DenormalizationDenormalization
Denormalization
 
Databases: Denormalisation
Databases: DenormalisationDatabases: Denormalisation
Databases: Denormalisation
 
Hierarchical Denormalization
Hierarchical DenormalizationHierarchical Denormalization
Hierarchical Denormalization
 
Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Data base
Data baseData base
Data base
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
The Relational Data Model and Relational Database Constraints
The Relational Data Model and Relational Database ConstraintsThe Relational Data Model and Relational Database Constraints
The Relational Data Model and Relational Database Constraints
 
Lecture 03 - The Data Warehouse and Design
Lecture 03 - The Data Warehouse and Design Lecture 03 - The Data Warehouse and Design
Lecture 03 - The Data Warehouse and Design
 
Sql join
Sql  joinSql  join
Sql join
 
Napkin folding final
Napkin folding finalNapkin folding final
Napkin folding final
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
 
Data warehouse-dimensional-modeling-and-design
Data warehouse-dimensional-modeling-and-designData warehouse-dimensional-modeling-and-design
Data warehouse-dimensional-modeling-and-design
 
Rdbms
RdbmsRdbms
Rdbms
 
SQL Joins
SQL JoinsSQL Joins
SQL Joins
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
SQL JOIN
SQL JOINSQL JOIN
SQL JOIN
 

Similar a Denormalization

When & Why\'s of Denormalization
When & Why\'s of DenormalizationWhen & Why\'s of Denormalization
When & Why\'s of DenormalizationAliya Saldanha
 
Rise of Column Oriented Database
Rise of Column Oriented DatabaseRise of Column Oriented Database
Rise of Column Oriented DatabaseSuvradeep Rudra
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL ServerRajesh Gunasundaram
 
Systems and methods for improving database performance
Systems and methods for improving database performanceSystems and methods for improving database performance
Systems and methods for improving database performanceEyjólfur Gislason
 
Tableau Best Practices.pptx
Tableau Best Practices.pptxTableau Best Practices.pptx
Tableau Best Practices.pptxAnitaB33
 
Chapter 8(designing of documnt databases)no sql for mere mortals
Chapter 8(designing of documnt databases)no sql for mere mortalsChapter 8(designing of documnt databases)no sql for mere mortals
Chapter 8(designing of documnt databases)no sql for mere mortalsnehabsairam
 
denormalization.ppt
denormalization.pptdenormalization.ppt
denormalization.pptABUSUFYAN55
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptIftikhar70
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptsubbu998029
 
Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008paulguerin
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingAmir Reza Hashemi
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song songLê Anh Trung
 
UNIT3 DBMS.pptx operation nd management of data base
UNIT3 DBMS.pptx operation nd management of data baseUNIT3 DBMS.pptx operation nd management of data base
UNIT3 DBMS.pptx operation nd management of data baseshindhe1098cv
 
Case Study: A Multi-Source Time Variant Data warehouse
Case Study: A Multi-Source Time Variant Data warehouseCase Study: A Multi-Source Time Variant Data warehouse
Case Study: A Multi-Source Time Variant Data warehousetarun kumar sharma
 
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​EdwinJacob5
 

Similar a Denormalization (20)

De normalozation
De normalozationDe normalozation
De normalozation
 
Cs437 lecture 7-8
Cs437 lecture 7-8Cs437 lecture 7-8
Cs437 lecture 7-8
 
When & Why\'s of Denormalization
When & Why\'s of DenormalizationWhen & Why\'s of Denormalization
When & Why\'s of Denormalization
 
Rise of Column Oriented Database
Rise of Column Oriented DatabaseRise of Column Oriented Database
Rise of Column Oriented Database
 
Query Optimization in SQL Server
Query Optimization in SQL ServerQuery Optimization in SQL Server
Query Optimization in SQL Server
 
Systems and methods for improving database performance
Systems and methods for improving database performanceSystems and methods for improving database performance
Systems and methods for improving database performance
 
Data warehouse physical design
Data warehouse physical designData warehouse physical design
Data warehouse physical design
 
very large database
very large databasevery large database
very large database
 
Tableau Best Practices.pptx
Tableau Best Practices.pptxTableau Best Practices.pptx
Tableau Best Practices.pptx
 
Chapter 8(designing of documnt databases)no sql for mere mortals
Chapter 8(designing of documnt databases)no sql for mere mortalsChapter 8(designing of documnt databases)no sql for mere mortals
Chapter 8(designing of documnt databases)no sql for mere mortals
 
denormalization.ppt
denormalization.pptdenormalization.ppt
denormalization.ppt
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
 
Dal deck
Dal deckDal deck
Dal deck
 
Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / Sharding
 
Csld phan tan va song song
Csld phan tan va song songCsld phan tan va song song
Csld phan tan va song song
 
UNIT3 DBMS.pptx operation nd management of data base
UNIT3 DBMS.pptx operation nd management of data baseUNIT3 DBMS.pptx operation nd management of data base
UNIT3 DBMS.pptx operation nd management of data base
 
Case Study: A Multi-Source Time Variant Data warehouse
Case Study: A Multi-Source Time Variant Data warehouseCase Study: A Multi-Source Time Variant Data warehouse
Case Study: A Multi-Source Time Variant Data warehouse
 
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Denormalization

  • 1. ‫الرحيم‬‫الرحمن‬‫هللا‬ ‫بسم‬ By:- 1- Amna Magzoub 2- Selma Yahyia 3- Ala Eltayeb Denormalization
  • 2. Objectives:-  Introduction  Definition Why and when to denormalize data Method of denormalization Manage denormalization data Advantages and disadvantages of denormalization  References
  • 3. Introduction • Result of normalization is a design that is structurally consistent with minimal redundancy. • However, sometimes a normalized database does not provide maximum processing efficiency. • May be necessary to accept loss of some benefits of a fully normalized design in favor of performance.
  • 4. Definition :- Denormalization is a process of combine two relation into one new relation.  Denormalization is the process of taking a normalized database and modifying table structures to allow controlled redundancy for increased database performance.
  • 5. Cont..  The argument in favor of denormalization is basically that it makes retrievals esaier to express and makes the perform better. It sometimes claimed to make the database easier to understand.
  • 6. When and why to denormailize Some issues need to be considered before denormalization: 1- Is the system’s performance unacceptable with fully normalized data? Meet a client and do some testing. 2- If the performance is unacceptable, will denormalizing make it acceptable? 3- If you denormalize to clear those bottlenecks, will the system and its data still be reliable?
  • 7. Cont…  Speed up retrievals.  A strict performance is required.  It is not heavily updated. - So, denormalize only when there is a very clear advantage to doing.
  • 9. Method of denormalization:- 1) Adding Redundant Columns. 2) Adding Derived Columns 3) Combining Tables 4) Repeating Groups 5) Creating extract tables 6) Partitioning Relations
  • 10. Adding Redundant Columns • You can add redundant columns to eliminate frequent joins. For example, if frequent joins are performed on the titleauthor and authors tables in order to retrieve the author's last name, you can add the au_lname column to titleauthor.
  • 11.
  • 12. • Adding redundant columns eliminates joins for many queries. The problems with this solution are that it: • Requires maintenance of new column. All changes must be made to two tables, and possibly to many rows in one of the tables. • Requires more disk space, since au_lname is duplicated.
  • 13. Adding Derived Columns • Adding derived columns can help eliminate joins and reduce the time needed to produce aggregate values. • The example shows both benefits. Frequent joins are needed between the titleauthor and titles tables to provide the total advance for a particular book title.
  • 14.
  • 15. • You can create and maintain a derived data column in the titles table, eliminating both the join and the aggregate at run time. This increases storage needs, and requires maintenance of the derived column whenever changes are made to the titles table.
  • 16. Combining Tables • If most users need to see the full set of joined data from two tables, collapsing the two tables into one can improve performance by eliminating the join. • For example, users frequently need to see the author name, author ID, and the blurbs copy data at the same time. The solution is to collapse the two tables into one. The data from the two tables must be in a one-to-one relationship to collapse tables.
  • 17.
  • 19. Repeating Groups These repeating groups can be stored as a nested table within the original table.
  • 21.
  • 22. Creating extract tables • Reports can access derived data and perform multi-relation joins on same set of base relations. However, data the report is based on may be relatively static or may not have to be current. • Possible to create a single, highly denormalized extract table based on relations required by reports, and allow users to access extract table directly instead of base relations.
  • 23. Partitioning Relations • Rather than combining relations together, alternative approach is to decompose them into a number of smaller and more manageable partitions. • Two main types of partitioning:- horizontal and vertical.
  • 24. Horizontal :- Distributing the tuples of relation across a number of (smaller) partitioning relation. Vertical :- Distributing the attributes of a relation a cross a number of (smaller) partitioning relation(the primary key duplicated to allow the original relation to be reconstucted.
  • 25.
  • 26. Horizanteial:- •Separate data into partitions so that queries do not need to examine all data in a table when WHERE clause filters specify only a subset of the partitions. •Horizontal splitting can also be more secure since file level of security can be used to prohibit users from seeing certain rows of data
  • 27. The example shows how the authors table might be split to separate active and inactive authors:
  • 28. Vertical Splitting: • Vertical splitting can be used when some columns are rarely accessed rather than other columns
  • 29. The example shows how the authors table can be partitioned.
  • 31. Managing Denormalized Data Whatever denormalization techniques you use, you need to develop management techniques to ensure data integrity. Choices include: • Triggers, which can update derived or duplicated data anytime the base data changes.
  • 32.
  • 33. • Application logic, using transactions in each application that updates denormalized data to be sure that changes are atomic.
  • 34. Cont… • Batch reconciliation, run at appropriate intervals to bring the denormalized data back into agreement. • If 100-percent consistency is not required at all times, you can run a batch job or stored procedure during off hours to reconcile duplicate or derived data. • You can run short, frequent batches or longer, less frequent batches.
  • 36. Advantages vs. disadvantages Advantages:- • Precomputing derived data • Minimizing the need for joins • Reducing the number of foreign keys in relations • Reducing the number of relations.
  • 37. disadvantages :- • May speed up retrievals but can slow down updates. • Always application-specific and needs to be re- evaluated in the application changes. • Can increase the size of relations. • May simplify implementation in some cases but may make it more complex in other. • reduce flexibility.
  • 38. Summary  Denormalization aids the process of adding redundancy to the database to improve performance .  Denormalize can be done with tables or columns.  Require aknowledge of how data is being used .  There are costs of denormalization reduces the “integrity” of the design ,always slow DML (data manipulation language) , need more memory space to store redundant data and required additional programming to maintain the denormalized data.
  • 39. References  Database design & Relational theory, C.J.Date  Database system .8th edition.  Data Normalization, Denormalization,and the Forces of Darkness a white paper by Melissa Hollingsworth.  www.icard.ru/~nail/sybase/perf/10.88.html
  • 40. Q & A