Distributed Database Management Systems Lecture 15.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Advanced Piloting Cruise Plot.
1
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
and 6.855J Spanning Tree Algorithms. 2 The Greedy Algorithm in Action
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
1 Discreteness and the Welfare Cost of Labour Supply Tax Distortions Keshab Bhattarai University of Hull and John Whalley Universities of Warwick and Western.
Solve Multi-step Equations
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Minimum Weight Plastic Design For Steel-Frame Structures EN 131 Project By James Mahoney.
PP Test Review Sections 6-1 to 6-6
ABC Technology Project
EU market situation for eggs and poultry Management Committee 20 October 2011.
EU Market Situation for Eggs and Poultry Management Committee 21 June 2012.
Digital Logic Design Gate-Level Minimization
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
2 |SharePoint Saturday New York City
Green Eggs and Ham.
VOORBLAD.
Distributed DBMSPage 5. 1 © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture  Distributed Database.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Constant, Linear and Non-Linear Constant, Linear and Non-Linear
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Equal or Not. Equal or Not
Januar MDMDFSSMDMDFSSS
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Relational Algebra and Relational Calculus
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
1 Chapter 13 Nuclear Magnetic Resonance Spectroscopy.
Energy Generation in Mitochondria and Chlorplasts
The Relational Algebra
CpSc 3220 Designing a Database
Distributed Computing 9. Sorting - a lower bound on bit complexity Shmuel Zaks ©
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Distributed Database Management Systems
Presentation transcript:

Distributed Database Management Systems Lecture 15

Virtual University of Pakistan 2 PHF- Minimality of Pr

Virtual University of Pakistan 3 A relevant predicate is the one if it influences how fragmentation is performed (fragments f into f i and f j )A relevant predicate is the one if it influences how fragmentation is performed (fragments f into f i and f j ) then there should be at least one application that accesses f i and f j differently. then there should be at least one application that accesses f i and f j differently.

Virtual University of Pakistan 4 If all predicates in a set Pr are relevant then the set is minimal If all predicates in a set Pr are relevant then the set is minimal

Virtual University of Pakistan 5 PHF-COM-MIN Algorithm

Virtual University of Pakistan 6 Given: a relation R and a set of simple predicates P r.Given: a relation R and a set of simple predicates P r. Output: a complete and minimal set of simple predicates P r ’ for P r.Output: a complete and minimal set of simple predicates P r ’ for P r.

Virtual University of Pakistan 7 Rule 1: a relation or fragment is partitioned into at least two parts which are accessed differently by at least one application.Rule 1: a relation or fragment is partitioned into at least two parts which are accessed differently by at least one application.

Virtual University of Pakistan 8 1-Initialization: –Find a p i ∈ Pr such that p i, partitions R according to Rule 1 Pr’ ← p i Pr’ ← p i Pr ← Pr – p i Pr ← Pr – p i

Virtual University of Pakistan 9 2- Iteratively add predicates to Pr' until it is complete, find a p j ∈ Pr such that p j partitions R according to Rule 1 set Pr' = Pr' U p i ; set Pr' = Pr' U p i ; Pr = Pr – p i ; Pr = Pr – p i ;

Virtual University of Pakistan 10 if p k in Pr' is non-relevant then Pr' = Pr' – p k

Virtual University of Pakistan 11 Primary Horizontal Partitioning Algorithm

Virtual University of Pakistan 12 Makes use of COM_MIN to perform fragmentation Input: a relation R and a set of simple predicates Pr

Virtual University of Pakistan 13 Output: a set of minterm predicates M according to which relation R is to be fragmented

Virtual University of Pakistan 14 Pr‘ ← COM_MIN (R,Pr) determine the set M of minterm predicates

Virtual University of Pakistan 15 determine the set I of implications among pi  Pr eliminate the contradictory minterms from M

Virtual University of Pakistan 16 PHF – Example II

Virtual University of Pakistan 17 1 Find the name and budget of projects given their no. issued at three sites –p1 : LOC = "Lahore” –p2 : LOC = “Rawalpindi" –p3 : LOC = "Peshawar“

Virtual University of Pakistan 18 2 Access project information according to budge one site accesses ≤ other accesses > –p4 : BUDGET ≤ –p5 : BUDGET >

Virtual University of Pakistan 19 Pr = Pr' = {p1,p2,p3,p4,p5 } ImplicationsImplications p 1   p 2   p 3p 1   p 2   p 3 p 4   p 5p 4   p 5

Virtual University of Pakistan 20 From predicates p1 to p6 in Pr’, there may be so many minterm predicates, like,From predicates p1 to p6 in Pr’, there may be so many minterm predicates, like, p1 ^ p2 ^ p3 ^ p4 ^ p5 Excluding the contradicting minterm predicates

Virtual University of Pakistan 21 –m1 : (LOC = "Lahore") ^ (BUDGET ≤ 2M) –m2 : (LOC = "Lahore") ^ (BUDGET > 2M) –m3 : (LOC = " Rawalpindi ") ^ (BUDGET ≤ 2M) –m4 : (LOC = "Rawalpindi") ^ (BUDGET > 2M) –m5 : (LOC = "Peshawar") ^ (BUDGET ≤ 2M) –m6 : (LOC = "Peshawar") ^ (BUDGET > 2M)

Virtual University of Pakistan 22 Implications must be based on the database semantics not on a particular extension of the databaseImplications must be based on the database semantics not on a particular extension of the database

Virtual University of Pakistan 23 pNopNamebudgetLoc P1Instrumentation3.5MLahore P2 Database Dev. 2.3MRawalpindi P3CAD/CAM1.9MRawalpindi P4Maintenance1.6MPeshawar PROJ

Virtual University of Pakistan 24 pNopNamebudgetLoc P1Instrumentation3.5MLahore P2 Database Dev. 2.3MRawalpindi P3CAD/CAM1.9MRawalpindi P4Maintenance1.6MPeshawar

Virtual University of Pakistan 25 Derived Horizontal Fragmentation(DHF)

Virtual University of Pakistan 26 Defined on a member relation of a link according to a selection operation specified on its ownerDefined on a member relation of a link according to a selection operation specified on its owner

Virtual University of Pakistan 27 Two important points:Two important points: –Each link is an equi-join. –Equijoin can be implemented by means of semi-joins

Virtual University of Pakistan 28 So we are interested in defining the partitions of member based on fragmentation of its owner, but want to see attributes only from member, soSo we are interested in defining the partitions of member based on fragmentation of its owner, but want to see attributes only from member, so

Virtual University of Pakistan 29 R i = R ⋉ S i, 1≤ i ≤ w where w is the maximum number of fragments that will be defined on R and where w is the maximum number of fragments that will be defined on R and Si =  Fi (S), where Fi is formula for PHF on S Si =  Fi (S), where Fi is formula for PHF on S

Virtual University of Pakistan 30 DHF Example

Virtual University of Pakistan 31 title, sal eNo, Name, titkejNo, jName, budget, loc eNo, jNo, resp, dur PAY EMP ASIGN PROJ L1

Virtual University of Pakistan 32 Considering the link L1 above: owner (L1) = PAY member (L1) = EMP We want to group employees on the basis of their salaries one with salary less than or equal to 30,000/- and other more than that

Virtual University of Pakistan 33 eNoeNametitle E1 T Khan Elec Eng E2 W Shah Sys Ana E3 R Dar Mech Eng E4 K Butt Programme E5 F Sahbai Sys Ana E6 A Haq Elec Eng E7 S Farhana Mech Eng E8 M Daud Sys Ana

Virtual University of Pakistan 34 TitleSal Elect. Eng Sys Analyst Mech. Eng Programmer24000

Virtual University of Pakistan 35 E3 R Dar Mech Eng E4 K Butt Programme E7 S Farhana Mech Eng eNoeNametitleE1 T Khan Elec Eng E2 W Shah Sys Ana E5 F Sahbai Sys Ana E6 A Haq Elec Eng E8 M Daud Sys Ana

ThanksThanks