SlideShare a Scribd company logo
Horizontal, vertical, mixed
Data fragmentation
 Decomposing a database into multiple smaller units
called FRAGMENTS, which are logically related and
correct parts
Characteristics of Fragmentation
 Must be complete ,
 must be possible to reconstruct the original database
from the fragments.
A relation can be fragmented in three ways:
 Horizontal Fragmentation
 Vertical Fragmentation
 Mixed Fragmentation.
Types of fragmentation
1] Horizontal fragmentation:
 It is a horizontal subset of a relation which contain
those of tuples which satisfy selection conditions.
 Specified in the SELECT operation of the relational
algebra on single or multiple attributes
 Consider the Employee relation with selection
condition (DNO = 5). All tuples satisfy this condition
will create a subset which will be a horizontal
fragment of Employee relation. σ(Dno=5) Employee.
Types of Horizontal fragmentation
Primary Horizontal Fragmentation:
 Fragmentation of primary relation
 Employee Table is fragmented for Department No.
Derived horizontal fragmentation:
 Fragmentations of the secondary relations that are dependent
on the primary relation ; related with Foreign keys.
 ‘WorksInProject’ : Employee and Project relation, can have
Employee_Id as its foreign key , and can be fragmented
horizontally over EmployeeId for the Various Projects in a
department.
 Find all the ProjectIds from WorksInProject where
 EmployeeId=123
Complete horizontal fragmentation
 Horizontal fragments have each and every tuple of the original
relation.
 Each tuple of the original relation will belong to at least one
partition.
 Original Relation :Employee
 Fragment1: σ(Employee Age<=21) Employee
 Fragment2: σ( 18<Employee Age < 65) Employee
 Fragment3: σ(Employee Age >= 65) Employee
 100 Rows in Original Table : employee , then the total number
of tuples in the above 3 fragments will be either 100 or more
than 100.
Disjoint horizontal fragmentation
 No 2 Fragments EVER have common tuples
 Every one tuple of the original relation belongs to 1 fragment
 Original :Employee
 Fragment1: σ(Employee Age<=18) Employee
Reconstruction of original relation
 To reconstruct the relation R from a complete horizontal
fragmentation, we need to apply the UNION operation to the
fragments.
 Original Employee is constructed via:
Employee  (Fragment1) U (Fragment2) U (Fragment3)
2] Vertical fragmentation:
 Each site may not need all the attributes of a relation. Thus we
use Vertical fragmentation which divides a relation “vertically”
by columns.
 It is a subset of a relation which is created by a subset of
columns.
 Consider the Employee relation:
 A vertical fragment of can be created by keeping the values of
Name, Birthdate, Gender , and Salary.
 Because there is no condition for creating a vertical fragment,
each fragment must include the primary key attribute of the
parent relation Employee. In this way all vertical fragments of a
relation are connected.
 PROJECT operation of the relational algebra is used
Complete vertical fragmentation
 A set of vertical fragments whose projection lists L1, L2, …, Ln
include all the attributes in R but share only the primary key of
R
 In this case the projection lists satisfy the following two
conditions:
 L1 U L2 U ... U Ln = ATTRS (R)
 Li ∩ Lj = PK(R) for any i j, where ATTRS (R) is the set of
attributes of R and PK(R) is the primary key of R.
Reconstruction of original relation
 To reconstruct R from complete vertical fragments a OUTER
UNION is applied.
3] Mixed fragmentation:
 A combination of Vertical fragmentation and Horizontal
fragmentation.
 This is achieved by SELECT-PROJECT operations which is
represented by
πLi(σCi (R))
 Select name and salary of all Male Employees from
Employees relation whose salary =$50,000
Fragmentation aims to improve:
 Reliability
 Performance
 Balanced storage capacity and costs
 Communication costs
 Security

More Related Content

What's hot

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
Ramakant Soni
 
Query processing
Query processingQuery processing
Query processing
Dr. C.V. Suresh Babu
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
Kavya Barnadhya Hazarika
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
Henry Osborne
 
File replication
File replicationFile replication
File replication
Klawal13
 
Parallel processing
Parallel processingParallel processing
Parallel processing
Syed Zaid Irshad
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Distributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithmsDistributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithms
MNM Jain Engineering College
 
Replication in Distributed Database
Replication in Distributed DatabaseReplication in Distributed Database
Replication in Distributed Database
Abhilasha Lahigude
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Semi join
Semi joinSemi join
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query OptimizationAli Usman
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
Subhasish Pati
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Properties
nomanbarki
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
AAKANKSHA JAIN
 
The CAP Theorem
The CAP Theorem The CAP Theorem
The CAP Theorem
Aleksandar Bradic
 

What's hot (20)

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
Query processing
Query processingQuery processing
Query processing
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
 
File replication
File replicationFile replication
File replication
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Distributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithmsDistributed Mutual exclusion algorithms
Distributed Mutual exclusion algorithms
 
Database System Architectures
Database System ArchitecturesDatabase System Architectures
Database System Architectures
 
Memory management
Memory managementMemory management
Memory management
 
Replication in Distributed Database
Replication in Distributed DatabaseReplication in Distributed Database
Replication in Distributed Database
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Semi join
Semi joinSemi join
Semi join
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Properties
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
 
The CAP Theorem
The CAP Theorem The CAP Theorem
The CAP Theorem
 

Viewers also liked

Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
HoneySah
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentation
Mohsan Ijaz
 
Types Of Audiences
Types Of AudiencesTypes Of Audiences
Types Of Audiences
annahigginson
 
Media Audiences an Introduction
Media Audiences an IntroductionMedia Audiences an Introduction
Media Audiences an Introduction
alevelmedia
 
Cloud Computing Security
Cloud Computing SecurityCloud Computing Security
Cloud Computing Security
Ninh Nguyen
 
Data security in cloud computing
Data security in cloud computingData security in cloud computing
Data security in cloud computingPrince Chandu
 

Viewers also liked (6)

Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentation
 
Types Of Audiences
Types Of AudiencesTypes Of Audiences
Types Of Audiences
 
Media Audiences an Introduction
Media Audiences an IntroductionMedia Audiences an Introduction
Media Audiences an Introduction
 
Cloud Computing Security
Cloud Computing SecurityCloud Computing Security
Cloud Computing Security
 
Data security in cloud computing
Data security in cloud computingData security in cloud computing
Data security in cloud computing
 

Similar to Fragmentation and types of fragmentation in Distributed Database

Relational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdfRelational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdf
VADAPALLYPRAVEENKUMA1
 
5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx
kavitha623544
 
Module 2-2.ppt
Module 2-2.pptModule 2-2.ppt
Module 2-2.ppt
Shylaja40
 
Relational algebr
Relational algebrRelational algebr
Relational algebr
Visakh V
 
Adbms 24 data fragmentation
Adbms 24 data fragmentationAdbms 24 data fragmentation
Adbms 24 data fragmentation
Vaibhav Khanna
 
Unit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdfUnit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdf
ajajkhan16
 
ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
Relational Algebra.pptx for Module four
Relational Algebra.pptx for  Module fourRelational Algebra.pptx for  Module four
Relational Algebra.pptx for Module four
Monaliaghosh
 
Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2
Eddyzulham Mahluzydde
 
E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)Mukund Trivedi
 
E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)Mukund Trivedi
 
E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2Mukund Trivedi
 
Chapter6
Chapter6Chapter6
Chapter6
gourab87
 
RDBMS
RDBMSRDBMS
RDBMS
NilaNila16
 
Relational Database and Relational Algebra
Relational Database and Relational AlgebraRelational Database and Relational Algebra
Relational Database and Relational Algebra
Pyingkodi Maran
 
3._Relational_Algebra.pptx:Basics of relation algebra
3._Relational_Algebra.pptx:Basics of relation algebra3._Relational_Algebra.pptx:Basics of relation algebra
3._Relational_Algebra.pptx:Basics of relation algebra
ZakriyaMalik2
 
Lecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptxLecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptx
Asadkhan47384
 
Chapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdfChapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdf
TamiratDejene1
 
Relational algebra-and-relational-calculus
Relational algebra-and-relational-calculusRelational algebra-and-relational-calculus
Relational algebra-and-relational-calculus
Salman Vadsarya
 

Similar to Fragmentation and types of fragmentation in Distributed Database (20)

Relational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdfRelational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdf
 
5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx5th chapter Relational algebra.pptx
5th chapter Relational algebra.pptx
 
Module 2-2.ppt
Module 2-2.pptModule 2-2.ppt
Module 2-2.ppt
 
354 ch6
354 ch6354 ch6
354 ch6
 
Relational algebr
Relational algebrRelational algebr
Relational algebr
 
Adbms 24 data fragmentation
Adbms 24 data fragmentationAdbms 24 data fragmentation
Adbms 24 data fragmentation
 
Unit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdfUnit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdf
 
ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
ER to Relational Mapping
 
Relational Algebra.pptx for Module four
Relational Algebra.pptx for  Module fourRelational Algebra.pptx for  Module four
Relational Algebra.pptx for Module four
 
Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2Chapter 2 Relational Data Model-part 2
Chapter 2 Relational Data Model-part 2
 
E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)
 
E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)
 
E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2
 
Chapter6
Chapter6Chapter6
Chapter6
 
RDBMS
RDBMSRDBMS
RDBMS
 
Relational Database and Relational Algebra
Relational Database and Relational AlgebraRelational Database and Relational Algebra
Relational Database and Relational Algebra
 
3._Relational_Algebra.pptx:Basics of relation algebra
3._Relational_Algebra.pptx:Basics of relation algebra3._Relational_Algebra.pptx:Basics of relation algebra
3._Relational_Algebra.pptx:Basics of relation algebra
 
Lecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptxLecture 02-2-IIS.pptx
Lecture 02-2-IIS.pptx
 
Chapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdfChapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdf
 
Relational algebra-and-relational-calculus
Relational algebra-and-relational-calculusRelational algebra-and-relational-calculus
Relational algebra-and-relational-calculus
 

More from Abhilasha Lahigude

AJAX
AJAXAJAX
Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS) Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS)
Abhilasha Lahigude
 
Acid properties
Acid propertiesAcid properties
Acid properties
Abhilasha Lahigude
 
Public awareness to protect environment
Public awareness to protect environmentPublic awareness to protect environment
Public awareness to protect environment
Abhilasha Lahigude
 
Hotspots of biodiversity
Hotspots of biodiversityHotspots of biodiversity
Hotspots of biodiversity
Abhilasha Lahigude
 
Disaster management(EVS)
Disaster management(EVS)Disaster management(EVS)
Disaster management(EVS)
Abhilasha Lahigude
 
Object oriented analysis &design - requirement analysis
Object oriented analysis &design - requirement analysisObject oriented analysis &design - requirement analysis
Object oriented analysis &design - requirement analysis
Abhilasha Lahigude
 
Online property management system design document
Online property management system design documentOnline property management system design document
Online property management system design document
Abhilasha Lahigude
 

More from Abhilasha Lahigude (8)

AJAX
AJAXAJAX
AJAX
 
Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS) Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS)
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Public awareness to protect environment
Public awareness to protect environmentPublic awareness to protect environment
Public awareness to protect environment
 
Hotspots of biodiversity
Hotspots of biodiversityHotspots of biodiversity
Hotspots of biodiversity
 
Disaster management(EVS)
Disaster management(EVS)Disaster management(EVS)
Disaster management(EVS)
 
Object oriented analysis &design - requirement analysis
Object oriented analysis &design - requirement analysisObject oriented analysis &design - requirement analysis
Object oriented analysis &design - requirement analysis
 
Online property management system design document
Online property management system design documentOnline property management system design document
Online property management system design document
 

Recently uploaded

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 

Recently uploaded (20)

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 

Fragmentation and types of fragmentation in Distributed Database

  • 2.  Decomposing a database into multiple smaller units called FRAGMENTS, which are logically related and correct parts Characteristics of Fragmentation  Must be complete ,  must be possible to reconstruct the original database from the fragments. A relation can be fragmented in three ways:  Horizontal Fragmentation  Vertical Fragmentation  Mixed Fragmentation.
  • 3. Types of fragmentation 1] Horizontal fragmentation:  It is a horizontal subset of a relation which contain those of tuples which satisfy selection conditions.  Specified in the SELECT operation of the relational algebra on single or multiple attributes  Consider the Employee relation with selection condition (DNO = 5). All tuples satisfy this condition will create a subset which will be a horizontal fragment of Employee relation. σ(Dno=5) Employee.
  • 4. Types of Horizontal fragmentation Primary Horizontal Fragmentation:  Fragmentation of primary relation  Employee Table is fragmented for Department No. Derived horizontal fragmentation:  Fragmentations of the secondary relations that are dependent on the primary relation ; related with Foreign keys.  ‘WorksInProject’ : Employee and Project relation, can have Employee_Id as its foreign key , and can be fragmented horizontally over EmployeeId for the Various Projects in a department.  Find all the ProjectIds from WorksInProject where  EmployeeId=123
  • 5. Complete horizontal fragmentation  Horizontal fragments have each and every tuple of the original relation.  Each tuple of the original relation will belong to at least one partition.  Original Relation :Employee  Fragment1: σ(Employee Age<=21) Employee  Fragment2: σ( 18<Employee Age < 65) Employee  Fragment3: σ(Employee Age >= 65) Employee  100 Rows in Original Table : employee , then the total number of tuples in the above 3 fragments will be either 100 or more than 100. Disjoint horizontal fragmentation  No 2 Fragments EVER have common tuples  Every one tuple of the original relation belongs to 1 fragment  Original :Employee  Fragment1: σ(Employee Age<=18) Employee
  • 6. Reconstruction of original relation  To reconstruct the relation R from a complete horizontal fragmentation, we need to apply the UNION operation to the fragments.  Original Employee is constructed via: Employee  (Fragment1) U (Fragment2) U (Fragment3)
  • 7. 2] Vertical fragmentation:  Each site may not need all the attributes of a relation. Thus we use Vertical fragmentation which divides a relation “vertically” by columns.  It is a subset of a relation which is created by a subset of columns.  Consider the Employee relation:  A vertical fragment of can be created by keeping the values of Name, Birthdate, Gender , and Salary.  Because there is no condition for creating a vertical fragment, each fragment must include the primary key attribute of the parent relation Employee. In this way all vertical fragments of a relation are connected.  PROJECT operation of the relational algebra is used
  • 8. Complete vertical fragmentation  A set of vertical fragments whose projection lists L1, L2, …, Ln include all the attributes in R but share only the primary key of R  In this case the projection lists satisfy the following two conditions:  L1 U L2 U ... U Ln = ATTRS (R)  Li ∩ Lj = PK(R) for any i j, where ATTRS (R) is the set of attributes of R and PK(R) is the primary key of R. Reconstruction of original relation  To reconstruct R from complete vertical fragments a OUTER UNION is applied.
  • 9. 3] Mixed fragmentation:  A combination of Vertical fragmentation and Horizontal fragmentation.  This is achieved by SELECT-PROJECT operations which is represented by πLi(σCi (R))  Select name and salary of all Male Employees from Employees relation whose salary =$50,000
  • 10. Fragmentation aims to improve:  Reliability  Performance  Balanced storage capacity and costs  Communication costs  Security