Finish Transactions - Parallel and Distributed Databases




CS157b

Chris Pollett

Apr 22, 2024

Outline

Introduction

Dealing with Deadlocks

Comparing Deadlock Handling Methods

Quiz

Which of the following statements is true?

  1. Warning Locks are used when there is only one granularity for database items.
  2. Commit timestamps are used to avoid dirty reads in timestamp scheduling.
  3. All serializable schedules are recoverable.

Parallel and Distributed Databases

Models of Parallelism

Parallel Algorithms on Relations

Tuple-at-a-Time Operations in Parallel

Parallel Algorithms for Full-Relation Operations - Distinct Case

Parallel Algorithms for Full-Relation Operations - General Case

Cost of Parallel Algorithm for Full-Relations

Map-Reduce Parallelism Framework

The Basic Framework

Distinct Phases of a Map-Reduce Job

Example Map-Reduce Jobs for Counting

Distributed Databases