Unit summary
- Parallel databases use shared-memory, shared-disk or shared-nothing architectures and partition data by round-robin, hash or range.
- Interquery parallelism raises throughput; intraquery parallelism, by intra-operation or inter-operation, lowers response time, limited by Amdahl's law.
- Distributed databases use fragmentation, replication and allocation, and distributed queries aim to reduce communication using semijoins.
- Distributed concurrency control needs global deadlock detection, and atomic commit uses two-phase commit.
Glossary
| Term | Meaning |
|---|---|
| Coordinator | Site that controls a distributed commit. |
| Fragmentation | Dividing a relation into parts for distribution. |
| Global wait-for graph | Merged wait-for graph of all sites. |
| Pipelined parallelism | Passing tuples between operations as produced. |
| Replication | Keeping copies of data at several sites. |
| Scaleup | Bigger job, more hardware, same time. |
| Semijoin | Tuples of one relation that match another. |
| Shared nothing | Each node has its own CPU, memory and disk. |
| Skew | Uneven distribution of work or data. |
| Speedup | Same job, more hardware, less time. |
| Two-phase commit | Atomic commit protocol with vote and decision phases. |
Question bank
Short Answer Questions (2 marks each)
Medium Answer Questions (5 marks each)
Long Answer Questions (15 marks each)
Sources
- Official BCA syllabus Advanced Database Systems, course code 25BCA406DS04, Unit III
