SlideShare a Scribd company logo
Unit – 4
Data Distribution Alternatives
Fragmentation
Horizontal Fragmentation
• Basic Requirement of Horizontal Fragmentation
1. Find out simple predicate Pr
2. Find out Minterm predicates M
3. Minterm selectivity sel(mi)
4. Access Frequencies acc(qi)
5. Access Frequencies Minterm acc(qi)
1/11/2017 2Prof. Dhaval R. Chandarana
Fragmentation Examples
• Example PROJECT table:
• PROJ:
PNO PNAME BUDGET LOC
P1 Instrumentation 150000 Montreal
P2 Database Develop 135000 New York
P3 CAD/CAM 250000 New York
P4 Maintenance 310000 Paris
1/11/2017 3Prof. Dhaval R. Chandarana
Predicates
• Predicates
• Appear in the WHERE clause of a query
• Important determiner of fragmentation
• Determine the composition of table fragments
• Let R(A1, A2, …, An) be a relation
• Ai is defined over a domain Di
• We say pi is a simple predicate if it is of the form
• Pi ʘ Value where ʘ ԑ { =, <, >, , , <> }
• Examples:
• PNAME = 'CAD/CAM'
• BUDGET > 200000
1/11/2017 4Prof. Dhaval R. Chandarana
Predicates
• Usually, multiple predicates are necessary to describe a selection of
rows in a relation
• Most Boolean combinations can be translated into conjunctive normal
form
• p1 ^ p2 ^ …^ pk
• We attempt to fragment tables according to selection (WHERE clause)
patterns
• A combination of predicates in conjunctive normal form is a Minterm
• Let a set of predicates on a relation be:
Pr = {p1, p2, …, pk }
1/11/2017 5Prof. Dhaval R. Chandarana
Minterms
• Let set of minterm predicates be
M = { m1, m2, …, mz }
where M = {mj | mj = ^(pn ԑ Pr) pn}
• Some property equivalences:
• For equality: !(attr = val) = (attr <> val)
• For inequality: !(attr > val) = (attr val)
• It is not necessary to duplicate predicates
• In minterms, one is sufficient
1/11/2017 6Prof. Dhaval R. Chandarana
Minterm Examples
• p1: LOC = 'Montreal'
• p2: LOC = 'New York'
• p3: LOC = 'Paris'
• p4: BUDGET > 200000
• p5: BUDGET <= 200000
• m1: LOC = 'New York' ^ BUDGET > 200000
• m2: LOC = 'New York' ^ BUDGET <= 200000
• m3: LOC = 'Paris' ^ BUDGET > 200000
• m4: LOC = 'Paris' ^ BUDGET <= 200000
• m5: LOC = 'Montreal' ^ BUDGET > 200000
• m6: LOC = 'Montreal ' ^ BUDGET <= 200000
1/11/2017 7Prof. Dhaval R. Chandarana
Minterm Properties
• Minterm selectivity
• Number of records that satisfy minterm
• sel(m1) = 1; sel(m2) = 1; sel(m4) = 0
• Access frequency by applications and users
• Q = {q1, q2, …, qq} is set of queries
• acc(q1) is frequency of access of query 1
1/11/2017 8Prof. Dhaval R. Chandarana
Primary Horizontal Fragmentation
• Using minterms and access frequency, one can generate a horizontal
fragmentation
• Suppose there are w fragments
• Then each relation fragment Ri is given by a formula Fi, where each
formula represents a minterm expression of predicates
Ri = ϭ Fi(R) where 1 <= i <= w
• Examples:
• PROJ1 = BUDGET<=200000 (PROJ)
• PROJ2 = BUDGET>200000 (PROJ)
1/11/2017 9Prof. Dhaval R. Chandarana
Algorithm for Determining Minterms
• Rule 1: fragment is partitioned into at least two parts that are
accessed differently by at least one application
• Definitions
• R - relation
• Pr - set of simple predicates
• Pr' - another set of simple predicates
• F - set of minterm fragments
1/11/2017 10Prof. Dhaval R. Chandarana
Algorithm for Determining Minterms
• Define set of inferences from the predicates
• Assume val1 and val2 are complimentary and complete the set of values:
• p1: att = val1
• p2: att = val2
• i1: (att = val1) => !(att = val2)
• i2: (att = val2) => !(att = val1)
• set of possible minterms
• m1: (att = val1) ^ (att = val2)
• m2: (att = val1) ^ !(att = val2)
• m3: !(att = val1) ^ (att = val2)
• m4: !(att = val1) ^ !(att = val2)
• m1 and m4 cannot be minterms because they contradict inferences
1/11/2017 11Prof. Dhaval R. Chandarana
Calculate Minterms for Table
PHORIZONTAL {
Pr' = COM_MIN(R, Pr)
determine set of minterms M
determine inference set I among Pr'
eliminate contradictory mi's according to I from M
eliminate subsumed minterms
what is left in M is horizontal fragmentation
}
1/11/2017 12Prof. Dhaval R. Chandarana
Example
Step 1: Identify relevant predicates
• p1: LOC = 'Montreal'
• p2: LOC = 'New York'
• p3: LOC = 'Paris'
• p4: BUDGET > 200000
• p5: BUDGET <= 200000
1/11/2017 13Prof. Dhaval R. Chandarana
Define Full Minterm Set
• m1: LOC = ‘Montreal’
• m2: LOC = ‘New York’
• m3: LOC = ‘Paris’
• m4: BUDGET > 200000
• m5: BUDGET <= 200000
• m6: LOC = ‘Montreal’ ^ LOC = ‘New York’
• m7: LOC = ‘Montreal’ ^ LOC = ‘Paris’
• m8: LOC = ‘Montreal’ ^ BUDGET > 200000
• m9: LOC = ‘Montreal’ ^ BUDGET <= 200000
• m10: LOC = ‘New York’ ^ LOC = ‘Paris’
• m11: LOC = ‘New York’ ^ BUDGET > 200000
• m12: LOC = ‘New York’ ^ BUDGET <= 200000
1/11/2017 14Prof. Dhaval R. Chandarana
Define Full Minterm Set
• m13: LOC = ‘Paris’ ^ BUDGET > 200000
• m14: LOC = ‘Paris’ ^ BUDGET <= 200000
• m15: BUDGET > 200000 ^ BUDGET <= 200000
• m16: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’
• m17: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET > 200000
• m18: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET <= 200000
• m19: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET > 200000
• m20: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET <= 200000
• m21: LOC = ‘Montreal’ ^ BUDGET > 200000 ^ BUDGET <= 200000
• m22: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000
• m23: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET <= 200000
• m24: LOC = ‘New York’ ^ BUDGET > 200000 ^ BUDGET <= 200000
• m25: LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <= 200000
1/11/2017 15Prof. Dhaval R. Chandarana
Define Full Minterm Set
• m26: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET >
200000
• m27: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET <=
200000
• m28: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET > 200000 ^ BUDGET
<= 200000
• m29: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <=
200000
• m30: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <=
200000
• m31: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET >
200000 ^ BUDGET <= 200000
1/11/2017 16Prof. Dhaval R. Chandarana
Define Inferences
• Inferences:
• p1 => ~p2 p3 => ~p1
• p1 => ~p3 p3 => ~p2
• p2 => ~p1 p4 => ~p5
• p2 => ~p3 p5 => ~p4
• Left with only:
• m1: LOC = ‘Montreal’ m8: LOC = ‘Montreal’ ^ BUDGET > 200000
• m2: LOC = ‘New York’ m9: LOC = ‘Montreal’ ^ BUDGET <= 200000
• m3: LOC = ‘Paris’ m12: LOC = ‘New York’ ^ BUDGET <= 200000
• m4: BUDGET > 200000 m13: LOC = ‘Paris’ ^ BUDGET > 200000
• m5: BUDGET <= 200000 m14: LOC = ‘Paris’ ^ BUDGET <= 200000
• After subsumption, only m8, m9, m11, m12, m13, m14 remain
1/11/2017 17Prof. Dhaval R. Chandarana
Actual Partitions
• The four actual partitions are: m9, m11, m12, m13
• The two partitions m8 and m14 have no data
PNO PNAME BUDGET LOC
P1 Instrumentation 150000 Montreal
P2 Database Develop 135000 New York
P3 CAD/CAM 250000 New York
P4 Maintenance 310000 Paris
1/11/2017 18Prof. Dhaval R. Chandarana

More Related Content

What's hot

MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROL
junnubabu
 
Distributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit ProtocolsDistributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit Protocols
Sachin Chauhan
 
Synchronous vs Asynchronous Programming
Synchronous vs Asynchronous ProgrammingSynchronous vs Asynchronous Programming
Synchronous vs Asynchronous Programming
jeetendra mandal
 
Dns resource record
Dns resource recordDns resource record
Dns resource record
rahuldaredia21
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
shashi712
 
Hierarchical clustering algo for wsn
Hierarchical clustering algo for wsnHierarchical clustering algo for wsn
Hierarchical clustering algo for wsn
Samruddhi Gaikwad
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtrackingmandlapure
 
Information retrieval 9 tf idf weights
Information retrieval 9 tf idf weightsInformation retrieval 9 tf idf weights
Information retrieval 9 tf idf weights
Vaibhav Khanna
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
Hitesh Mohapatra
 
Wireless Network Architecture
Wireless Network ArchitectureWireless Network Architecture
Wireless Network Architecture
Pawandeep Singh
 
Learning set of rules
Learning set of rulesLearning set of rules
Learning set of rules
swapnac12
 
Distance Vector Multicast Routing Protocol (DVMRP) : Presentation
Distance Vector Multicast Routing Protocol (DVMRP) : PresentationDistance Vector Multicast Routing Protocol (DVMRP) : Presentation
Distance Vector Multicast Routing Protocol (DVMRP) : Presentation
Subhajit Sahu
 
[Paper] attention mechanism(luong)
[Paper] attention mechanism(luong)[Paper] attention mechanism(luong)
[Paper] attention mechanism(luong)
Susang Kim
 
Topic Modeling - NLP
Topic Modeling - NLPTopic Modeling - NLP
Topic Modeling - NLP
Rupak Roy
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
Meghaj Mallick
 
Congestion control
Congestion controlCongestion control
Congestion control
Aman Jaiswal
 
Entropy and denial of service attacks
Entropy and denial of service attacksEntropy and denial of service attacks
Entropy and denial of service attacks
chris zlatis
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer network
Anil Pokhrel
 
The vector space model
The vector space modelThe vector space model
The vector space model
pkgosh
 

What's hot (20)

MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROL
 
Distributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit ProtocolsDistributed Transactions(flat and nested) and Atomic Commit Protocols
Distributed Transactions(flat and nested) and Atomic Commit Protocols
 
Synchronous vs Asynchronous Programming
Synchronous vs Asynchronous ProgrammingSynchronous vs Asynchronous Programming
Synchronous vs Asynchronous Programming
 
Dns resource record
Dns resource recordDns resource record
Dns resource record
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
 
Hierarchical clustering algo for wsn
Hierarchical clustering algo for wsnHierarchical clustering algo for wsn
Hierarchical clustering algo for wsn
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Information retrieval 9 tf idf weights
Information retrieval 9 tf idf weightsInformation retrieval 9 tf idf weights
Information retrieval 9 tf idf weights
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
Wireless Network Architecture
Wireless Network ArchitectureWireless Network Architecture
Wireless Network Architecture
 
Learning set of rules
Learning set of rulesLearning set of rules
Learning set of rules
 
Distance Vector Multicast Routing Protocol (DVMRP) : Presentation
Distance Vector Multicast Routing Protocol (DVMRP) : PresentationDistance Vector Multicast Routing Protocol (DVMRP) : Presentation
Distance Vector Multicast Routing Protocol (DVMRP) : Presentation
 
[Paper] attention mechanism(luong)
[Paper] attention mechanism(luong)[Paper] attention mechanism(luong)
[Paper] attention mechanism(luong)
 
Topic Modeling - NLP
Topic Modeling - NLPTopic Modeling - NLP
Topic Modeling - NLP
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 
Gsm radio-interface
Gsm radio-interfaceGsm radio-interface
Gsm radio-interface
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Entropy and denial of service attacks
Entropy and denial of service attacksEntropy and denial of service attacks
Entropy and denial of service attacks
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer network
 
The vector space model
The vector space modelThe vector space model
The vector space model
 

More from Gyanmanjari Institute Of Technology

WD - Unit - 7 - Advanced Concepts
WD - Unit - 7 - Advanced ConceptsWD - Unit - 7 - Advanced Concepts
WD - Unit - 7 - Advanced Concepts
Gyanmanjari Institute Of Technology
 
WD - Unit - 4 - PHP Basics
WD - Unit - 4 - PHP BasicsWD - Unit - 4 - PHP Basics
WD - Unit - 4 - PHP Basics
Gyanmanjari Institute Of Technology
 
WD - Unit - 3 - Java Script
WD - Unit - 3 - Java ScriptWD - Unit - 3 - Java Script
WD - Unit - 3 - Java Script
Gyanmanjari Institute Of Technology
 
WD - Unit - 6 - Database Connectivity using PHP
WD - Unit - 6 - Database Connectivity using PHPWD - Unit - 6 - Database Connectivity using PHP
WD - Unit - 6 - Database Connectivity using PHP
Gyanmanjari Institute Of Technology
 
WD - Unit - 5 - Session and State Management using PHP
WD - Unit - 5 - Session and State Management using PHPWD - Unit - 5 - Session and State Management using PHP
WD - Unit - 5 - Session and State Management using PHP
Gyanmanjari Institute Of Technology
 
WD - Unit - 2 - HTML & CSS
WD - Unit - 2 - HTML & CSSWD - Unit - 2 - HTML & CSS
WD - Unit - 2 - HTML & CSS
Gyanmanjari Institute Of Technology
 
WD - Unit - 1 - Introduction
WD - Unit - 1 - IntroductionWD - Unit - 1 - Introduction
WD - Unit - 1 - Introduction
Gyanmanjari Institute Of Technology
 
OSV - Unit - 8 - Unix/Linux Operating System
OSV - Unit - 8 - Unix/Linux Operating SystemOSV - Unit - 8 - Unix/Linux Operating System
OSV - Unit - 8 - Unix/Linux Operating System
Gyanmanjari Institute Of Technology
 
OSV - Unit - 10 - Approaches to Virtualization
OSV - Unit - 10 - Approaches to VirtualizationOSV - Unit - 10 - Approaches to Virtualization
OSV - Unit - 10 - Approaches to Virtualization
Gyanmanjari Institute Of Technology
 
OSV - Unit - 9 - Virtualization Concepts
OSV - Unit - 9 - Virtualization ConceptsOSV - Unit - 9 - Virtualization Concepts
OSV - Unit - 9 - Virtualization Concepts
Gyanmanjari Institute Of Technology
 
OSV - Unit - 7 - I/O Management & Disk scheduling
OSV - Unit - 7 - I/O Management & Disk schedulingOSV - Unit - 7 - I/O Management & Disk scheduling
OSV - Unit - 7 - I/O Management & Disk scheduling
Gyanmanjari Institute Of Technology
 
OSV - Unit - 6 - Memory Management
OSV - Unit - 6 - Memory ManagementOSV - Unit - 6 - Memory Management
OSV - Unit - 6 - Memory Management
Gyanmanjari Institute Of Technology
 
CNS - Unit - 10 - Web Security Threats and Approaches
CNS - Unit - 10 - Web Security Threats and ApproachesCNS - Unit - 10 - Web Security Threats and Approaches
CNS - Unit - 10 - Web Security Threats and Approaches
Gyanmanjari Institute Of Technology
 
OSV - Unit - 5 - Deadlock
OSV - Unit - 5 - DeadlockOSV - Unit - 5 - Deadlock
OSV - Unit - 5 - Deadlock
Gyanmanjari Institute Of Technology
 
OSV - Unit - 4 - Inter Process Communication
OSV - Unit - 4 - Inter Process CommunicationOSV - Unit - 4 - Inter Process Communication
OSV - Unit - 4 - Inter Process Communication
Gyanmanjari Institute Of Technology
 
OSV - Unit - 3 - Concurrency
OSV - Unit - 3 - ConcurrencyOSV - Unit - 3 - Concurrency
OSV - Unit - 3 - Concurrency
Gyanmanjari Institute Of Technology
 
OSV - Unit - 2 - Process and Threads Management
OSV - Unit - 2 - Process and Threads ManagementOSV - Unit - 2 - Process and Threads Management
OSV - Unit - 2 - Process and Threads Management
Gyanmanjari Institute Of Technology
 
CNS - Unit - 8 - Key Management and Distribution
CNS - Unit - 8 - Key Management and DistributionCNS - Unit - 8 - Key Management and Distribution
CNS - Unit - 8 - Key Management and Distribution
Gyanmanjari Institute Of Technology
 
CNS - Unit - 7 - Digital Signature
CNS - Unit - 7 - Digital SignatureCNS - Unit - 7 - Digital Signature
CNS - Unit - 7 - Digital Signature
Gyanmanjari Institute Of Technology
 
CNS - Unit - 6 - Message Authentication Code
CNS - Unit - 6 - Message Authentication CodeCNS - Unit - 6 - Message Authentication Code
CNS - Unit - 6 - Message Authentication Code
Gyanmanjari Institute Of Technology
 

More from Gyanmanjari Institute Of Technology (20)

WD - Unit - 7 - Advanced Concepts
WD - Unit - 7 - Advanced ConceptsWD - Unit - 7 - Advanced Concepts
WD - Unit - 7 - Advanced Concepts
 
WD - Unit - 4 - PHP Basics
WD - Unit - 4 - PHP BasicsWD - Unit - 4 - PHP Basics
WD - Unit - 4 - PHP Basics
 
WD - Unit - 3 - Java Script
WD - Unit - 3 - Java ScriptWD - Unit - 3 - Java Script
WD - Unit - 3 - Java Script
 
WD - Unit - 6 - Database Connectivity using PHP
WD - Unit - 6 - Database Connectivity using PHPWD - Unit - 6 - Database Connectivity using PHP
WD - Unit - 6 - Database Connectivity using PHP
 
WD - Unit - 5 - Session and State Management using PHP
WD - Unit - 5 - Session and State Management using PHPWD - Unit - 5 - Session and State Management using PHP
WD - Unit - 5 - Session and State Management using PHP
 
WD - Unit - 2 - HTML & CSS
WD - Unit - 2 - HTML & CSSWD - Unit - 2 - HTML & CSS
WD - Unit - 2 - HTML & CSS
 
WD - Unit - 1 - Introduction
WD - Unit - 1 - IntroductionWD - Unit - 1 - Introduction
WD - Unit - 1 - Introduction
 
OSV - Unit - 8 - Unix/Linux Operating System
OSV - Unit - 8 - Unix/Linux Operating SystemOSV - Unit - 8 - Unix/Linux Operating System
OSV - Unit - 8 - Unix/Linux Operating System
 
OSV - Unit - 10 - Approaches to Virtualization
OSV - Unit - 10 - Approaches to VirtualizationOSV - Unit - 10 - Approaches to Virtualization
OSV - Unit - 10 - Approaches to Virtualization
 
OSV - Unit - 9 - Virtualization Concepts
OSV - Unit - 9 - Virtualization ConceptsOSV - Unit - 9 - Virtualization Concepts
OSV - Unit - 9 - Virtualization Concepts
 
OSV - Unit - 7 - I/O Management & Disk scheduling
OSV - Unit - 7 - I/O Management & Disk schedulingOSV - Unit - 7 - I/O Management & Disk scheduling
OSV - Unit - 7 - I/O Management & Disk scheduling
 
OSV - Unit - 6 - Memory Management
OSV - Unit - 6 - Memory ManagementOSV - Unit - 6 - Memory Management
OSV - Unit - 6 - Memory Management
 
CNS - Unit - 10 - Web Security Threats and Approaches
CNS - Unit - 10 - Web Security Threats and ApproachesCNS - Unit - 10 - Web Security Threats and Approaches
CNS - Unit - 10 - Web Security Threats and Approaches
 
OSV - Unit - 5 - Deadlock
OSV - Unit - 5 - DeadlockOSV - Unit - 5 - Deadlock
OSV - Unit - 5 - Deadlock
 
OSV - Unit - 4 - Inter Process Communication
OSV - Unit - 4 - Inter Process CommunicationOSV - Unit - 4 - Inter Process Communication
OSV - Unit - 4 - Inter Process Communication
 
OSV - Unit - 3 - Concurrency
OSV - Unit - 3 - ConcurrencyOSV - Unit - 3 - Concurrency
OSV - Unit - 3 - Concurrency
 
OSV - Unit - 2 - Process and Threads Management
OSV - Unit - 2 - Process and Threads ManagementOSV - Unit - 2 - Process and Threads Management
OSV - Unit - 2 - Process and Threads Management
 
CNS - Unit - 8 - Key Management and Distribution
CNS - Unit - 8 - Key Management and DistributionCNS - Unit - 8 - Key Management and Distribution
CNS - Unit - 8 - Key Management and Distribution
 
CNS - Unit - 7 - Digital Signature
CNS - Unit - 7 - Digital SignatureCNS - Unit - 7 - Digital Signature
CNS - Unit - 7 - Digital Signature
 
CNS - Unit - 6 - Message Authentication Code
CNS - Unit - 6 - Message Authentication CodeCNS - Unit - 6 - Message Authentication Code
CNS - Unit - 6 - Message Authentication Code
 

Recently uploaded

Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
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
 
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
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
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
 
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
 
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
 
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
 
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
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
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
 
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
 

Recently uploaded (20)

Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
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
 
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)
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
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
 
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...
 
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
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
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
 
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
 

Distributed DBMS - Unit - 4 - Data Distribution Alternatives

  • 1. Unit – 4 Data Distribution Alternatives Fragmentation
  • 2. Horizontal Fragmentation • Basic Requirement of Horizontal Fragmentation 1. Find out simple predicate Pr 2. Find out Minterm predicates M 3. Minterm selectivity sel(mi) 4. Access Frequencies acc(qi) 5. Access Frequencies Minterm acc(qi) 1/11/2017 2Prof. Dhaval R. Chandarana
  • 3. Fragmentation Examples • Example PROJECT table: • PROJ: PNO PNAME BUDGET LOC P1 Instrumentation 150000 Montreal P2 Database Develop 135000 New York P3 CAD/CAM 250000 New York P4 Maintenance 310000 Paris 1/11/2017 3Prof. Dhaval R. Chandarana
  • 4. Predicates • Predicates • Appear in the WHERE clause of a query • Important determiner of fragmentation • Determine the composition of table fragments • Let R(A1, A2, …, An) be a relation • Ai is defined over a domain Di • We say pi is a simple predicate if it is of the form • Pi ʘ Value where ʘ ԑ { =, <, >, , , <> } • Examples: • PNAME = 'CAD/CAM' • BUDGET > 200000 1/11/2017 4Prof. Dhaval R. Chandarana
  • 5. Predicates • Usually, multiple predicates are necessary to describe a selection of rows in a relation • Most Boolean combinations can be translated into conjunctive normal form • p1 ^ p2 ^ …^ pk • We attempt to fragment tables according to selection (WHERE clause) patterns • A combination of predicates in conjunctive normal form is a Minterm • Let a set of predicates on a relation be: Pr = {p1, p2, …, pk } 1/11/2017 5Prof. Dhaval R. Chandarana
  • 6. Minterms • Let set of minterm predicates be M = { m1, m2, …, mz } where M = {mj | mj = ^(pn ԑ Pr) pn} • Some property equivalences: • For equality: !(attr = val) = (attr <> val) • For inequality: !(attr > val) = (attr val) • It is not necessary to duplicate predicates • In minterms, one is sufficient 1/11/2017 6Prof. Dhaval R. Chandarana
  • 7. Minterm Examples • p1: LOC = 'Montreal' • p2: LOC = 'New York' • p3: LOC = 'Paris' • p4: BUDGET > 200000 • p5: BUDGET <= 200000 • m1: LOC = 'New York' ^ BUDGET > 200000 • m2: LOC = 'New York' ^ BUDGET <= 200000 • m3: LOC = 'Paris' ^ BUDGET > 200000 • m4: LOC = 'Paris' ^ BUDGET <= 200000 • m5: LOC = 'Montreal' ^ BUDGET > 200000 • m6: LOC = 'Montreal ' ^ BUDGET <= 200000 1/11/2017 7Prof. Dhaval R. Chandarana
  • 8. Minterm Properties • Minterm selectivity • Number of records that satisfy minterm • sel(m1) = 1; sel(m2) = 1; sel(m4) = 0 • Access frequency by applications and users • Q = {q1, q2, …, qq} is set of queries • acc(q1) is frequency of access of query 1 1/11/2017 8Prof. Dhaval R. Chandarana
  • 9. Primary Horizontal Fragmentation • Using minterms and access frequency, one can generate a horizontal fragmentation • Suppose there are w fragments • Then each relation fragment Ri is given by a formula Fi, where each formula represents a minterm expression of predicates Ri = ϭ Fi(R) where 1 <= i <= w • Examples: • PROJ1 = BUDGET<=200000 (PROJ) • PROJ2 = BUDGET>200000 (PROJ) 1/11/2017 9Prof. Dhaval R. Chandarana
  • 10. Algorithm for Determining Minterms • Rule 1: fragment is partitioned into at least two parts that are accessed differently by at least one application • Definitions • R - relation • Pr - set of simple predicates • Pr' - another set of simple predicates • F - set of minterm fragments 1/11/2017 10Prof. Dhaval R. Chandarana
  • 11. Algorithm for Determining Minterms • Define set of inferences from the predicates • Assume val1 and val2 are complimentary and complete the set of values: • p1: att = val1 • p2: att = val2 • i1: (att = val1) => !(att = val2) • i2: (att = val2) => !(att = val1) • set of possible minterms • m1: (att = val1) ^ (att = val2) • m2: (att = val1) ^ !(att = val2) • m3: !(att = val1) ^ (att = val2) • m4: !(att = val1) ^ !(att = val2) • m1 and m4 cannot be minterms because they contradict inferences 1/11/2017 11Prof. Dhaval R. Chandarana
  • 12. Calculate Minterms for Table PHORIZONTAL { Pr' = COM_MIN(R, Pr) determine set of minterms M determine inference set I among Pr' eliminate contradictory mi's according to I from M eliminate subsumed minterms what is left in M is horizontal fragmentation } 1/11/2017 12Prof. Dhaval R. Chandarana
  • 13. Example Step 1: Identify relevant predicates • p1: LOC = 'Montreal' • p2: LOC = 'New York' • p3: LOC = 'Paris' • p4: BUDGET > 200000 • p5: BUDGET <= 200000 1/11/2017 13Prof. Dhaval R. Chandarana
  • 14. Define Full Minterm Set • m1: LOC = ‘Montreal’ • m2: LOC = ‘New York’ • m3: LOC = ‘Paris’ • m4: BUDGET > 200000 • m5: BUDGET <= 200000 • m6: LOC = ‘Montreal’ ^ LOC = ‘New York’ • m7: LOC = ‘Montreal’ ^ LOC = ‘Paris’ • m8: LOC = ‘Montreal’ ^ BUDGET > 200000 • m9: LOC = ‘Montreal’ ^ BUDGET <= 200000 • m10: LOC = ‘New York’ ^ LOC = ‘Paris’ • m11: LOC = ‘New York’ ^ BUDGET > 200000 • m12: LOC = ‘New York’ ^ BUDGET <= 200000 1/11/2017 14Prof. Dhaval R. Chandarana
  • 15. Define Full Minterm Set • m13: LOC = ‘Paris’ ^ BUDGET > 200000 • m14: LOC = ‘Paris’ ^ BUDGET <= 200000 • m15: BUDGET > 200000 ^ BUDGET <= 200000 • m16: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ • m17: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET > 200000 • m18: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET <= 200000 • m19: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 • m20: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET <= 200000 • m21: LOC = ‘Montreal’ ^ BUDGET > 200000 ^ BUDGET <= 200000 • m22: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 • m23: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET <= 200000 • m24: LOC = ‘New York’ ^ BUDGET > 200000 ^ BUDGET <= 200000 • m25: LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <= 200000 1/11/2017 15Prof. Dhaval R. Chandarana
  • 16. Define Full Minterm Set • m26: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 • m27: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET <= 200000 • m28: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ BUDGET > 200000 ^ BUDGET <= 200000 • m29: LOC = ‘Montreal’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <= 200000 • m30: LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <= 200000 • m31: LOC = ‘Montreal’ ^ LOC = ‘New York’ ^ LOC = ‘Paris’ ^ BUDGET > 200000 ^ BUDGET <= 200000 1/11/2017 16Prof. Dhaval R. Chandarana
  • 17. Define Inferences • Inferences: • p1 => ~p2 p3 => ~p1 • p1 => ~p3 p3 => ~p2 • p2 => ~p1 p4 => ~p5 • p2 => ~p3 p5 => ~p4 • Left with only: • m1: LOC = ‘Montreal’ m8: LOC = ‘Montreal’ ^ BUDGET > 200000 • m2: LOC = ‘New York’ m9: LOC = ‘Montreal’ ^ BUDGET <= 200000 • m3: LOC = ‘Paris’ m12: LOC = ‘New York’ ^ BUDGET <= 200000 • m4: BUDGET > 200000 m13: LOC = ‘Paris’ ^ BUDGET > 200000 • m5: BUDGET <= 200000 m14: LOC = ‘Paris’ ^ BUDGET <= 200000 • After subsumption, only m8, m9, m11, m12, m13, m14 remain 1/11/2017 17Prof. Dhaval R. Chandarana
  • 18. Actual Partitions • The four actual partitions are: m9, m11, m12, m13 • The two partitions m8 and m14 have no data PNO PNAME BUDGET LOC P1 Instrumentation 150000 Montreal P2 Database Develop 135000 New York P3 CAD/CAM 250000 New York P4 Maintenance 310000 Paris 1/11/2017 18Prof. Dhaval R. Chandarana