Transactions Flashcards

1
Q

What are the ACID properties of transactions?

A

Atomicity, Consistency, Isolation and Durability

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

What does atomicity of a transaction refer to?

A

Indivisiblity, all or nothing

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

What does consistency in transactions refer to?

A

Mapping consistent states to other consistent states the same way

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

What does isolation in transactions refer to?

A

Independence from other transactions

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

What does durability in transactions refer to?

A

The permanent recording of successful transactions

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

What is a Lost Update?

A

When a write is lost as it is overwritten by a later write

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

What is a dirty read?

A

The reading of an uncommited write

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

What is a non-repeatable read?

A

Reading different values of the same variable in one transaction

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

What is a phantom read?

A

Reading different rows of the same table in one transaction

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

What are the 4 isolation levels?

A

Read uncommited, read commited, repeatable read and serializable

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

Which read errors does read uncommited solve?

A

Lost update

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

Which read errors does read commited solve?

A

Lost update, dirty read and phantom read

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

Which read errors does repeatable read solve?

A

Lost update, dirty read, non repeatable read, and phantom read

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

Which read errors does serializable solve?

A

Lost update, dirty read, non repeatable read, and phantom read

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