Chapter 22: Distributed Databases
Chapter 22: Distributed Databases
Database systems that run on each site are independent of each other
22.2
Sites may not be aware of each other and may provide only
limited facilities for cooperation in transaction processing
22.3
Data Replication
Full replication of a relation is the case where the relation is stored at all
sites.
Fully redundant databases are those in which every site contains a copy
of the entire database.
22.4
Advantages of Replication
One solution: choose one copy as primary copy and apply concurrency
control operations on primary copy
22.5
Data Fragmentation
Vertical fragmentation: the schema for relation r is split into several smaller
schemas
22.6
branch_name
balance
A-305
A-226
A-155
Hillside
Hillside
Hillside
500
336
62
branch_name
Valleyview
Valleyview
Valleyview
Valleyview
balance
205
10000
1123
750
22.7
customer_name
tuple_id
Lowman
Hillside
Camp
Hillside
Camp
Valleyview
Kahn
Valleyview
Kahn
Hillside
Kahn
Valleyview
Green
Valleyview
deposit1 = branch_name, customer_name, tuple_id (employee_info )
account_number
balance
500
A-305
336
A-226
205
A-177
10000
A-402
62
A-155
1123
A-408
750
A-639
deposit2 = account_number, balance, tuple_id (employee_info )
Database System Concepts - 5th Edition, Aug 22, 2005.
22.8
1
2
3
4
5
6
7
tuple_id
1
2
3
4
5
6
7
Silberschatz, Korth and Sudarshan
Advantages of Fragmentation
Horizontal:
allows a relation to be split so that tuples are located where they are
most frequently accessed
Vertical:
allows tuples to be split so that each part of the tuple is stored where
it is most frequently accessed
22.9
Data Transparency
Fragmentation transparency
Replication transparency
Location transparency
2.
3.
4.
22.10