Transactions Flashcards

1
Q

What is a transaction?

A

A unit of program execution that accesses and possibly edits various data items.

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

Expand ACID.

A

Atomicity
Consistency
Isolation
Durability

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

Name the 5 transaction states.

A
Active
Partially Committed
Failed
Aborted
Committed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define schedules.

A

Sequences that indicate the chronological order in which instructions of concurrent transactions are executed.

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

When is a schedule serializable?

A

When it is equivalent to a serial schedule.

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

What is conflict equivalence?

A

When S can be turned into S’ by a series of swaps of non conflicting instructions.

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

When is a schedule S conflict serializable?

A

When it is conflict equivalent to a serial schedule.

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

When are two transactions view equivalent?

A

When following three conditions are met:

  1. S and S’ read initial values.
  2. If S reads a value of Q produced by Tj, S’ should too.
  3. The transaction that performs final write(Q) in S must do same in S’.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a recoverable schedule?

A

When a transaction Tj reads data items previously written by Ti, the commit of Ti appears before commit of Tj.

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

What is a cascading schedule?

A

A schedule in which transaction are dependent on other transactions in schedule.

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

What is cascading rollback?

A

The phenomenon in which single transaction failure lens to a series of transaction rollbacks.

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

When is a schedule conflict serializable?

A

When precedence graph has no cycles.

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