Transactions in SQL In SQL, a transaction begins implicitly SQL에서 Transaction은 DML(Data Manipulate Language) 문장이 나오면 암시적으로 시작된다.
Transactions in SQL In SQL, a transaction begins implicitly SQL에서 Transaction은 DML(Data Manipulate Language) 문장이 나오면 암시적으로 시작된다.
Insert and Delete Operations A delete operation may be performed only if the transaction has an X-mode lock on the tuple A transaction that inserts a new tuple is given an X-mode lock on the tuple Insertions and deletions can lead to the phantom phenomenon Delete와 Insert Operation은 X-mode lock을 획득해야...
Deadlock Example T1: write(X) T2: write(Y) write(Y) write(X) Lock 기반 동시성 제어에서 Transaction은 데이터를 읽거나 쓰기 전에 반드시 Lock을 획득해야 한다.
Multiple-Granularity Locking Multiple Granularity Locking은 lock을 걸 수 있는 데이터 단위(granularity)를 다양하게 허용한다.
Lock-Based Protocols Locking Protocol은 Transaction의 동시성 제어를 위해 사용된다. Concurrent execution을 수행하면서도 Isolation과 Consistency를 충족하는 schedule을 생성하도록 한다.
커밋했는데 서버가 꺼지면? 커밋 중에 죽으면, 절반만 쓰인 데이터는? Durability “커밋했다”는 약속은 서버가 꺼져도 유효해야 한다. Atomicity 트랜잭션은 전부 반영되거나, 전혀 반영되지 않아야 한다. 1. System Failure 1.1.