Transactions Flashcards

1
Q

What is an major objective in developing a database?

A

A major objective in developing a database is to enable many

users to access shared data concurrently (samtidigt).

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

What is Transaction processing?

A

Transaction processing is a style of computing that divides work
into individual,indivisible operations called transactions.

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

what does Transaction processing systems attempt to provide?

A

Transaction processing systems attempt to provide fast and

predicable response time to requests

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

what is Transaction processing designed for?

A

Transaction processing is designed to maintain a system’s
integrity in a known, consistent state, by ensuring that
interdependent operations on the system are
- either all completed successfully or
- all cancelled successfully

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

What is the definition of Concurrency control?

A

Definition of Concurrency control:

  • The process of managing simultaneous operations on the database
    without having them interfere with one another.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a transaction?

A

Informally: A transaction is an execution of a program that accesses a shared database

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

what is The objective of a concurrency control protocol?

A

The objective of a concurrency control protocol is to schedule transactions in such
a way as to avoid any interference between them:

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

What is one obvious solution to reach the objective of a concurrency control protocol ?

A

One obvious solution to reach the concurrency control protocol objective is to allow ONLY ONE transaction at the time to execute:

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

What are the pros and cons of Locking?

A
Locking Protocols
\+ good for update intensive 
   applications
- locking overheads
- not free from deadlock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the pros and cons of Timestamping?

A
Timestamp Protocols
\+Freedom from deadlocks
\+No transaction has to wait 
  for other transaction
\+Transactions do not block 
  each other
  => better concurrency than 
  locking protocols
\+An aborted transaction is 
  restarted with a new 
  timestamp
- Can result in starvation of 
  long transaction:
  — a long transaction can be 
  restarted all the time and 
  never be completed
  if shorter transactions 
  completes all the time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does ACID stand för?

A
A = Atomicity
C = Consistency
I = Isolation
D = Durability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly