Distributed Database Management Systems: Lecture 20. The main topics covered in this chapter include: continue with VF to hybrid fragmentation; allocation problem; replication; VF correctness; primary and derived horizontal fragmentation;...
Trang 1Distributed Database Management Systems
Lecture 20
Trang 2In the Previous Lecture
–Computed CA
–Partitioning Algorithm
Trang 3In this Lecture
–Hybrid Fragmentation–Allocation Problem
–Replication
Trang 7VF Correctness
Trang 8• A relation R, defined over
attribute set A and key K,
generates the vertical
Trang 10Hybrid Fragmentation
Trang 11Practically,
applications require the fragmentation of both the types to be combined
Trang 12So the nesting of
fragmentations, i.e., one following the
other, it becomes
sort of a tree
Trang 13• Disjoint ness and
completeness have to
be assured at each
step, and
reconstruction can be obtained by applying Join and Union in
reverse order
Trang 14A/C# Name Bal Branch
Delta1 = Loc = “MTN” ( σ ΠA/C#, Name, Branch (CUST))
Beta = ΠA/C#, Bal (CUST)
Trang 15Allocation
Trang 17• Optimality
–Minimize the processing
cost and maximize the
system throughput at
each site
Trang 18It is a complex problem
to be solved
mathematically, to make the things very simple,
consider the allocation of
a single fragment Fk,
Trang 19• set of read only
Trang 22The specification of the
allocation problem will be
0 otherwise
x j = 1 if the fragment Fk is assigned to site Sj
I S j
j j
ij I
s j
j I
Sj j
ij j
j m
d x c
t c
min '
Trang 23• That concludes our
discussion on
Fragmentation
Trang 25Horizontal
Fragmentation
Trang 26• Splits a table into
horizontal subsets (row
wise)
• Primary and Derived
Horizontal Fragmentation
Trang 27• We need major simple
Trang 30• Calculated using
usage data and
access frequencies from different sites
into CA using BEA
Trang 32Thanks