Transactions Flashcards

cram the ACID

1
Q

What is a transaction?

A

a single logical unit of work that must be entirely completed or aborted.

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

Name the transaction properties

A
  1. Atomicity
  2. Consistency
  3. Isolation
  4. Durability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define Atomicity.

A

all database operations (sql requests) of a transaction must be entirely completed or entirely aborted.

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

Define Consistency

A

it must take the database from one consistent state to another

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

Define Isolation

A
  • it must not interfere with other concurrent transactions.
  • Data used during execution of a transaction cannot be used by a second transaction until the first one is completed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Durability

A

Once completed the changes the transaction made to the data are durable, even in the event of system failure.

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

What is serializability

A
  • ensures that the schedule for the concurrent execution of several translations should yield consistent results.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a transaction log.

A

keeps track of all transactions in the database.
- recovery requirements triggered by Rollback Statement.
- Program’s abnormal termination.
- System Failure.

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

what is Concurrency Control.

A

A method used to manage simultaneous operations without conflicts.

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

Three Main problems associated with Concurrency Control

A
  1. Lost update
  2. Uncommitted data.
  3. Inconsistency Retrievals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define lost update.

A
  • Occurs in two concurrent transactions when : same data element is updated and one of the updates is lost.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define Uncommitted data.

A
  • occurs when 2 transactions are executed concurrently, first transaction is rolled back after the second transaction has accessed uncommitted data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define Inconsistency Retrievals

A
  • occurs when a transaction accesses data before and after one or more other transactions finish working with such data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly