5. Transactions Flashcards

1
Q

A transaction is a unit of program execution that ___ and possibly ___ various data items.

A

Accesses

Updates

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

ACID stand for ___ ___ ___ ___

A

Atomicity Consistency Isolation Durability

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

Atomicity
Either all operations of the transaction are properly
___ in the database or ___

A

Reflected

None are

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

Consistency

Execution of a transaction in ___ preserves the consistency of the database.

A

Isolation

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

Isolation
Although multiple transactions may execute concurrently, each transaction must be ___ of other concurrently executing transactions. Intermediate transaction results must be ___ from other concurrently executed transactions.

A

Unaware

Hidden

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

Durability

After a transaction completes successfully, the changes it has made to the database ___, even if there are ___.

A

Persist

System failures

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

Schedule
A sequence of instructions that specify the
___ in which instructions of ___
transactions are executed

A

Chronological order

Concurrent

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

Serializability (Basic Assumption)

Each transaction preserves database ___

A

Consistency

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

Conflicting Instructions
Instructions l_i and I_j of transactions T_i and T_j
respectively, conflict if and only if there exists some ___ Q accessed by both l_i and l_j , and at least one of these instructions ___ Q.

A

Item

Wrote

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

Conflict equivalent

Schedules S and Sā€™ are conflict equivalent if a S can be transformed into Sā€™ by a series of ___

A

Non-conflicting instructions

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

Conflict serializable

Schedule S is conflict serializable if it is ___ to a ___ schedule

A

Conflict equivalent

Serial

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

Recoverable schedule
If transaction Tj reads a data item previously written by a transaction Ti , then the commit of Tj must appear ___ the commit of Ti

A

After

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

Cascading rollback
A ___ transaction failure leads to a series
of ___

A

Single

Transaction rollbacks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
Isolation Levels
1- \_\_\_
2- \_\_\_ (Phantom Reads)
3- \_\_\_ (Phantom Reads / Non-repeatable
reads)
4-  \_\_\_ (Phantom Reads/ Non-repeatable
reads /Dirty Reads)
A

Serializable
Repeatable read
Read committed
Read uncommitted

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