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

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

再来看看事务的状态

管理事务的有
Transaction Manager–保证consistency
Scheduler-用于concurrency control
Recovery Manager-用于restore the database
Scheduler
1、Serial execution
2、Parallel execution—concurrency control
看个例子

scheduler必须preserve the order of the operations in each individual transaction
对同一数据的读写是一对冲突pair

通过这个就可以得到serialisation schedule
并发控制:

先介绍锁
简单的锁就不说了
说一个Two-Phase Locking

就是加锁和解锁都是一个阶段
再一个是Strict Two-Phase Locking

学习笔记:数据库原理CH11.事务
https://yiyuwang.be/2021/06/02/2021-06-02-377426940/