1. Trang chủ
  2. » Công Nghệ Thông Tin

Distributed Database Management Systems: Lecture 28

30 6 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Serializability Theory in DDBS
Định dạng
Số trang 30
Dung lượng 268,66 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Distributed Database Management Systems: Lecture 28. The main topics covered in this chapter include: serializability theory; serializability theory in DDBS; equivalent schedules; serializable schedule; fragmented databases; replicated databases;...

Trang 1

Distributed Database Management Systems

Lecture 28

Trang 2

In the previous lecture

• Types of Transaction

• Transaction in DDBS

• Serial Transactions

• Conflicting Ops/Tr.

Trang 3

In this Lecture

• Serializability Theory

• Serializability Theory in

DDBS.

Trang 4

Equivalent Schedules

Two schedules S1, S2 defined over same T are equivalent if they have same effect on the database, that is, leave

database in same final state

Trang 5

• Formally, if for each pair of

conflicting operations Oij and

Okl (i ≠ k) if Oij <1 Okl then

Oij <2 Okl

• The phenomena is also

called conflict equivalence

Trang 6

Serializable Schedule

Trang 7

If it is conflict equivalent

to a serial schedule,

i.e., the final state in

which it leaves the

database is equivalent

to a serial

Trang 10

• The function of the

Trang 11

Fragmented Databases

Trang 12

• The serializability is

straight forward

• Local transaction are

independent of each other; each concerns local data.

Trang 14

transactions-Replicated Databases

Trang 15

Read(x)

x = x + 5 Write(x) Commit

T2:

Read(x)

x = x*10 Write(x) Commit

Trang 16

• All values of replicated

data should be same

1.Local Schedule same

2.Conflicting Ops in same relative order on all sites.

Trang 17

• Logical and physical

data items

• User issues Ops on

logical data items

• Replica control maps

to physical ones-

Trang 19

Concurrency Control Algorithms

Trang 21

topology-• Synchronization primitive

is the most common

• Locking and Ordering

• Pessimistic & Optimistic.

Trang 22

• Pessimistic approach

synchronizes

transactions early

• Optimistic do this late

in execution life cycle

of transactions

Trang 25

• Optimistic

–Locking-based

–Timestamp based.

Trang 26

ordering-Locking based Concurrency Control

Trang 27

• Basic idea is that data

Trang 28

• Two major types of

locks, read lock and write lock

• Transaction need to

apply lock first

Trang 30

• Locking is job of

DDBMS, not the user

• Scheduler is the Lock

Manager

• TM and LM interact.

Ngày đăng: 05/07/2022, 13:40