Quiz 4 (Transactions) Flashcards

1
Q

Transaction

A

An execution of a user program, seen by the DBMS as a series or list of operations; operations may include read, write, commit, rollback (abort).

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

ACID

A

Four properties of transactions to maintain data in the face of concurrency and possible failures; Atomicity, Consistency, Isolation, Durability.

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

Atomicity

A

Either all actions are carried out or none are.

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

Consistency

A

When the user submits a transaction against a database that is in a consistent state, and that transation runs to completion, the data will remain in a consistent state; consistency is the responsibility of the user.

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

Isolation

A

Transactions are isolated from the effects of other concurrently running (interleaved) transaction.

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

Durability

A

Once the DBMS informs the user that a transaction has been successfully completed, its effects should persist regardless of system crashes or failures.

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

Schedule

A

A list of actions (reading, writing, committing, rolling back (aborting) from a set of transactions; the order in which two actions of a transaction T appear in a schedule must be the same order as in the transaction.

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

Concurrency

A

Running the individual steps of multiple transactions interleaved together to take advantage to improve performance; isolation of transactions must be maintained.

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

Serializable Schedule

A

A schedule of a set of transactions that is equivalent to running them serially.

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

Conflicting Actions

A

Actions in two or more transactions that may conflict with each other; always involves a write operation as one of the actions.

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

Reading Uncommitted Data Conflicting Action

A

A transaction T2 could read a database object A that has been previously modified by another transaction T1 (dirty read).

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

Unrepeatable Read Conflicting Action

A

Transaction T2 could change the value of an object A that has been read by a transaction T1 while T1 is still in progress.

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

Overwriting Uncommitted Data Conflicting Action

A

A transaction T2 could overwrite the value of an object AA which has already been modified by transaction T1 while T1 is still in progress.

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

Strict Two-Phase Locking (Strict 2PL)

A

A protocol used by DBMS’s to ensure that only serializable recoverable schedules are allowed and that no action of committed transactions are lost while undoing aborted transactions.
Strict 2PL has two rules:

  1. If a transaction T wants to read (or modify) an object, it first requests a shared (or exclusive) lock on the object.
  2. All locks held by a transaction are released when the transaction is completed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Table Locking

A

Place a shared or exclusive lock on an entire table.

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

Row Locking

A

Place a share or exclusive lock on individual row(s) in a table.

17
Q

Phantom Row

A

A transaction retrieves a collection of tuples twice and sees different results because another transaction added a new row that wasn’t previously part of a row level lock.