Principles Of Distributed Database Systems Exercise — Solutions

Introduction

Answer: Max failures = 1 (with write quorum 4, if 2 fail, only 3 remain, insufficient for write). Introduction

Consider a distributed database system that stores information about customers, orders, and products. The database is fragmented into three fragments: Move R1(100) to T3 site: 100

Design a distributed query to retrieve all tuples from R1 and R2. Answer: Max failures = 1 (with write quorum

Exercise 3: Distributed Transaction Management

3. Reason about ordering and visibility

Assume PROJ is horizontally fragmented by location:

2. Distributed Query Processing – Exercises

Exercise 2.1: Cost-Based Join Order Selection

Problem:
Three fragments R1 (size 100 tuples), S2 (size 500 tuples), T3 (size 2000 tuples) at three different sites. Compute the cheapest join order for R1 ⨝ S2 ⨝ T3. Assume transmission cost = 1 unit per tuple, and local join cost ignored.