学习笔记:数据库原理CH11.事务

014_001.jpg

这一章,比较简单,先来看看ACID

014_002.jpg

再来看看事务的状态

014_003.jpg

管理事务的有

Transaction Manager–保证consistency

Scheduler-用于concurrency control

Recovery Manager-用于restore the database

Scheduler

1、Serial execution

2、Parallel execution—concurrency control

看个例子

014_004.jpg

scheduler必须preserve the order of the operations in each individual transaction

对同一数据的读写是一对冲突pair

014_005.jpg

通过这个就可以得到serialisation schedule

并发控制:

014_006.jpg

先介绍锁

简单的锁就不说了

说一个Two-Phase Locking

014_007.jpg

就是加锁和解锁都是一个阶段

再一个是Strict Two-Phase Locking

014_008.jpg


学习笔记:数据库原理CH11.事务
https://yiyuwang.be/2021/06/02/2021-06-02-377426940/
作者
StevenWong
发布于
2021年6月2日
许可协议