Free Online Flashcard Deck

6 Transactions and Concurrency Basics Free Online FlashCards

Study 6 Transactions and Concurrency Basics with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is a database transaction?

Back

A transaction is a group of database operations treated as one logical unit.

02
Front

What does atomicity guarantee?

Back

Atomicity means all operations in a transaction take effect, or none do; uncommitted changes can be rolled back.

03
Front

What does consistency mean in ACID?

Back

Consistency means a transaction preserves defined database rules, such as constraints and business rules.

04
Front

What does isolation control?

Back

Isolation controls which changes concurrent transactions can see and aims to prevent unacceptable interference.

05
Front

What does durability guarantee?

Back

Durability means successfully committed changes are recorded to survive system failure, subject to database guarantees and configuration.

06
Front

What does `BEGIN` do?

Back

`BEGIN` (or `START TRANSACTION`) starts a transaction block.

07
Front

What does `COMMIT` do?

Back

`COMMIT` makes a transaction's changes permanent and visible to other transactions.

08
Front

What does `ROLLBACK` do?

Back

`ROLLBACK` cancels a transaction's uncommitted changes.

09
Front

How does a savepoint help within a transaction?

Back

A `SAVEPOINT` marks a position in a transaction. `ROLLBACK TO SAVEPOINT` undoes work after that point while retaining earlier work.

10
Front

What is autocommit?

Back

With autocommit, each standalone statement is treated as its own transaction and committed if it succeeds.

11
Front

Why group several related statements in a transaction?

Back

Explicitly group statements in a transaction when they must succeed or fail together; autocommit otherwise treats standalone statements separately.

12
Front

What are four common isolation-level names?

Back

Common isolation-level names are `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, and `SERIALIZABLE`.