Transaction Management in DBMS

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

1/22

flashcard set

Earn XP

Description and Tags

This set of vocabulary flashcards covers the fundamental concepts of transaction management, the ACID properties, concurrency control, and recovery mechanisms in MySQL as presented in the Week 12 lecture notes.

Last updated 12:46 AM on 5/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Interleaving

A method used in high-performance DBMS like MySQL where the CPU switches to another task instead of waiting for slow Disk I/O, gaining efficiency through simultaneous action.

2
New cards

CPU Actions

Actions within the DBMS that involve calculations, logic, and memory management.

3
New cards

I/O Actions

Actions within the DBMS that involve reading from or writing to physical storage.

4
New cards

Atomicity

The ‐‐‐All or Nothing‐‐‐ rule of the ACID model; if one part of a transaction fails, the entire unit is aborted.

5
New cards

Consistency

A property of the ACID model ensuring a transaction transforms the database from one valid state to another while maintaining all defined constraints.

6
New cards

Isolation

A property of the ACID model where transactions occur independently, and partial effects of incomplete transactions are not visible to others.

7
New cards

Durability

A property of the ACID model ensuring that once changes are committed, they are persistent and survive system crashes or power failures.

8
New cards

Lost Updates

A concurrency problem where two transactions read the same data and then update it, causing the second update to overwrite the first.

9
New cards

Uncommitted Dependency (Dirty Read)

A concurrency problem where a transaction reads data that has been changed by another transaction but has not yet been committed.

10
New cards

Inconsistent Analysis

A concurrency problem where a transaction reads several values to calculate a total while another transaction is mid-way through updating those values.

11
New cards

Phantom Reads

A concurrency problem where a query returns a set of rows, but when re-run, finds different rows inserted by a recently committed transaction.

12
New cards

Locking

A procedure used to control concurrent access to data by requiring a transaction to claim a request on a data item before a read or write operation.

13
New cards

Shared Lock (S)

A type of lock that allows a transaction to read a row and can be held by multiple transactions at once.

14
New cards

Exclusive Lock (X)

A lock required to update or delete data that blocks all other lock requests until it is released; only one transaction can hold it at a time.

15
New cards

Deadlock

A state where Transaction A waits for a lock held by B, and B waits for a lock held by A, which MySQL automatically detects and resolves by rolling back one transaction.

16
New cards

START TRANSACTION

The SQL command that begins a logical unit of work in MySQL.

17
New cards

COMMIT

The SQL command that saves all changes made during a transaction permanently to the disk.

18
New cards

ROLLBACK

The SQL command that undoes all changes made since the current transaction started, returning the database to its previous state.

19
New cards

Autocommit

The default MySQL behavior where every single SQL statement is treated as an individual transaction.

20
New cards

Redo Log (Transaction Log)

A physical file recording every change used by MySQL to ‐‐‐redo‐‐‐ committed changes that had not yet hit the main data files during a system crash.

21
New cards

Undo Log

A record of how to reverse changes, used for ROLLBACK commands and providing consistent reads for other users.

22
New cards

Binary Log (Binlog)

A log used specifically for database replication and point-in-time recovery.

23
New cards

Transaction (SQL)

A group of one or more database operations, usually Data Manipulation Language (DML), treated as a single unit of work that either fully completes or has no effect at all.