RANCANGAN DATABASE TERDISTRIBUSI
A. FRAGMENTASI DATA
Fragmentasi : relasi dibagi ke dalam beberapa bagian, setiap bagian disimpan pada lokasi yang berbeda.
Tiga jenis fragmentasi :
1. Fragmentasi Horizontal.
Berisi tuple-tuple yang dipartisi dari sebuah relasi global ke dalam sejumlah
subset.
Deposit 1 = s branch-name = “Hillside” (Deposit)
Deposit 1 = s branch-name = “Valleyview” (Deposit)
Branch-name | Account-number | Customer-name | Balance |
Hillside | 305 | Lowman | 500 |
Hillside | 226 | Camp | 336 |
Hillside | 115 | Khan | 62 |
Deposit 1
Branch-name | Account-number | Customer-name | Balance |
Valleyview | 177 | Camp | 205 |
Valleyview | 402 | Khan | 10000 |
Valleyview | 408 | Khan | 1123 |
Valleyview | 639 | Green | 750 |
Deposit 2
2. Fragmentasi Vertikal.
Branch-name | Account-number | Customer-name | Balance | Tuple-id |
Hillside | 305 | Lowman | 500 | 1 |
Hillside | 226 | Camp | 336 | 2 |
Valleyview | 117 | Camp | 205 | 3 |
Valleyview | 402 | Khan | 10000 | 4 |
Hillside | 115 | Khan | 62 | 5 |
Valleyview | 408 | Khan | 1123 | 6 |
Valleyview | 639 | Green | 750 | 7 |
Deposit 3 = p branch-name, customer-name,tuple-id (deposit)
Deposit 4 = p account-number,balance,tuple-id (deposit)
Branch-name | Customer-name | Tuple-id |
Hillside | Lowman | 1 |
Hillside | Camp | 2 |
Valleyview | Camp | 3 |
Valleyview | Khan | 4 |
Hillside | Khan | 5 |
Valleyview | Khan | 6 |
Valleyview | Green | 7 |
Account-number | Balance | Tuple-id |
305 | 500 | 1 |
226 | 336 | 2 |
117 | 205 | 3 |
402 | 10000 | 4 |
115 | 62 | 5 |
408 | 1123 | 6 |
639 | 750 | 7 |
3. Fragmentasi campuran.
B. REPLIKASI
Sistem memelihara beberapa salinan (copy) dari relasi. Setiap salinan disimpan pada beberapa lokasi yang berbeda.
Tidak ada komentar:
Posting Komentar