Concurrency Problems and Transaction Terms Flashcards

1
Q

Lost Update

A

Lost Update: Occurs when two transactions read the same data simultaneously, and both update the data independently. The second update overwrites the changes made by the first transaction, leading to the loss of the initial update.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

commit

A

Commit: Finalizes a transaction, making all its changes permanent in the database. Once committed, the changes are durable and survive system failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

rollback

A

Rollback: Undoes the changes made by a transaction, reverting the database to its state before the transaction began. Used to discard changes if an error occurs or to ensure the Atomicity property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

write-ahead transaction log

A

Write-Ahead Transaction Log: A mechanism where changes made by a transaction are first recorded in a log before being applied to the database. This ensures durability by allowing for recovery in case of system failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly