Database Transactions and Concurrency Control

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Key terminology regarding database transaction properties, isolation levels, common anomalies, and concurrency control mechanisms.

Last updated 2:09 AM on 8/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

Transaction

A unit of work that either completes entirely or has no effect at all.

2
New cards

ACID

An acronym for the 44 properties guaranteed by databases: atomicity, consistency, isolation, and durability.

3
New cards

Atomicity

The property ensuring that partial completion of a transaction is impossible.

4
New cards

Durability

The property ensuring that once a transaction commits, its effects survive a crash, often achieved by using a write-ahead log.

5
New cards

Isolation

A property requiring that concurrent transactions produce results as if they had run one after another; often implemented with various levels of strictness.

6
New cards

Serializable

Full isolation where concurrent transactions produce the same result as if they had run 11 after another.

7
New cards

Read Committed

The default isolation level for PostgreSQL; it prevents dirty reads but permits non-repeatable and phantom reads.

8
New cards

Repeatable Read

The default isolation level for MySQL's InnoDB; it prevents dirty and non-repeatable reads.

9
New cards

Dirty read

An anomaly that occurs when a transaction reads data written by another transaction that has not yet committed.

10
New cards

Non-repeatable read

An anomaly occurring when a transaction reads the same row 22 times and gets different values because another transaction committed a change in between.

11
New cards

Phantom read

An anomaly occurring when a transaction re-runs a query returning a set of rows and finds that new rows have appeared.

12
New cards

Next-key locking

A technique used by InnoDB to prevent phantom reads in most cases.

13
New cards

Deadlock

A situation where 22 transactions each hold a lock that the other needs.

14
New cards

Wait-for graph

A structure databases use to detect deadlocks by searching for cycles.

15
New cards

Victivm

The transaction chosen by the database to be aborted in order to resolve a deadlock.

16
New cards

Optimistic concurrency control

An approach that allows transactions to proceed without initial locking, checking for conflicts only at commit time and aborting if any reads have changed.