4.10 Fundamentals of DB (Client Server Databases) Flashcards

(18 cards)

1
Q

What is a client-server database

A

A multi-user database, which allows various users can access it from different locations at the same time.

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

How is a client-server databases managed

A
  • They are managed by a DBMS (Database Management System)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the lost update problem

A

Where concurrent access of a record in a database causes the update of one transaction to be overwritten by the other

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

What is concurrent access

A

When multiple users make transactions on the same record at the same time

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

What is a DBMS

A

Software that enables the management of all aspects of a database

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

What is the main problem with client server databases

A
  • Concurrent access can result in the problem of
    updates being lost if two clients edit a record at
    the same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different ways concurrent access can be managed

A
  • Record Locks
  • Serialisation
  • Commitment Ordering
  • Timestamps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a non-distributed system

A

where all the parts of the system are in the same physical location

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

What are the three methods used in a non-distributed client server database to prevent the lost update problem

A
  • Serialisation
  • Record Locks
  • Timestamps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the method used in a distributed client server database to prevent the lost update problem

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

Why is commitment ordering used for distributed client server databases

A
  • Commitment ordering is more effective when there are a higher volume of people using the database concurrently
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a transaction

A

A unit or request made by a user on a database

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

How do record locks work

A

When a record is accessed by one user, it is immediately locked to other users until the first user has finished using it. Other users are blocked from accessing or modifying the content of a field until it has been unlocked.

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

How does serialization work

A

requests from users are
placed in a queue. Once the first user has finished using the
field, the next command in the queue is executed and so on.

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

How does Timestamp Ordering work

A

each transaction is assigned a timestamp for reading and writing. Commands
are carried out on the field in the order of their timestamps.

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

How does Commitment Ordering work

A

When a database uses commitment ordering, an algorithm is used to work out an optimum order in which to execute commands for the same field. This algorithm will take into account the impact of commands on other parts of the database and attempt to minimise issues from occurring with the database.

17
Q

What is the problem with record locking

A

A deadlock can occur when multiple transactions are dependent on each other finishing before the transaction itself finishes

18
Q

How is deadlocking prevented when using record locks

A

Commitment Ordering:
- If the transaction is likely to cause a deadlock, it is blocked until other transactions finishes