concurrency control in distributed database systems with read-only replication anne denton and...

7
Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Upload: jonathan-nash

Post on 13-Dec-2015

220 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Concurrency Control in Distributed Database Systems with Read-Only replication

Anne Denton and Vijayakumar Shanmugasundaram

Page 2: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Distributed Systems Multiple databases that behave as

one Replication

Speeds up “read” Slows down “write”

Problem: compromises local loads Can we restore autonomy of

databases?

Page 3: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Idea Databases have r/w section with local

locking Data from other databases is replicated

in a read-only section Read-only data is “validated” after all

reads and writes and before commit If validation fails => abort => optimistic treatment of replicated

data

Page 4: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

How validate? Request validation only of items to

be read? Rather: send validation information

for entire replicated section (similar to request vector)

Compression? => P-trees

Page 5: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Concurrency Control Define new operations and check

serializability with existing r, w Validate Reload Read

Read-only transactions don’t require validation, if multi-version CC and virtual commit-time is used

Page 6: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Design Choices Validate also at beginning of

transaction? Download invalidated data

automatically? Effect on read-write transactions Effect on read-only transactions

Regular validity checks?

Page 7: Concurrency Control in Distributed Database Systems with Read-Only replication Anne Denton and Vijayakumar Shanmugasundaram

Simulation Using OOD Java JCL and Our own Classes Implementation of P-tree? Accommodation of any design

choices Results Analysis – University

Statistician