YEAR 2 CO1 WEEK 4 TRANSACTION PROCESSING Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What has to happen before data is added to a database?

A

The data has to be collected/captured in some way.
Manual methods including transcribing data or using OCR/OMR, scanners or barcode readers.

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

What happens when data has been collected for the database?

A

One collected can be transfered to a database either,
Automatically using DBMS Software
Typing it in using a customised form
Importing from another type of file.

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

What should be done when exchanging data to a database?

A

Validation should occur to ensure data is sensible along with verification to ensure data entered matches the original.

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

What are some ways of transcribing data?

A

Electronic Data Interface - translation may be used to make sure any EDI format can be input directly into different company’s database.
JSON (JavaScript Object Notation) - one of most common medium for describing + exchanging text based data.
SOAP - a standardised protocol that sends messages using HTTP or SMPT.

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

Describe Transaction Processing.

A

A single logical operation on data is defined as a single transaction.
Database must ensure not possible to complete only part of a transaction.

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

Describe what ACID is and what It stands for.

A

ACID is a set of properties that guarantee that transactions are processed reliably.
ATOMICITY
CONSISTENCY
ISOLATION
DURABILITY

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

What does Atomicity mean in context of transaction processing?

A

Atomicity ensures that a transaction must be processed in its entirety or not at all.
Transactions should either succeed or fail but never partially.

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

What does consistency mean in terms of Transaction Processing?

A

The transaction should only change database according to rules of the database in order to maintain integrity.
When Relational Database created referential Integrity rules specified between links in tables.
Not possible to create or delete a record if related records exist in linked tables.
Eg. Employee can’t be deleted if have salary details in another table.

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

What does Isolation mean in terms of Transactional Processing?

A

Ensures concurrent execution of transactions leads to same results as if the transactions were processed one after another.
Eg. Each transaction should not overwrite other transactions that are being processed at the same time.

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

What does Durability mean in terms of Transaction Processing?

A

Ensures once a transaction has been committed, it will remain so even in the result of a power outage.

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

Describe how record locking works?

A

In its simplest form the record is “locked” when the first user obtains the data and cannot be accessed by any other user until it is “unlocked”.

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

Describe what is meant by a deadlock?

A

Where two users try to access a single record at the same time a situation occurs where neither can be processed.

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

What is meant by serilisation?

A

When two or more transactions executed concurrently, effect should be the same if had been executed serially I.e one after another.

Ensures transactions do not overlap in time so cannot interfere with eachother or lead to updates being lost.

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

What is TimeStamp Ordering?

A

When transaction starts its given a timestamp so if two transactions affect same object earliest timestamp should be applied first.

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

What is commitment ordering?

A

Transactions are ordered in terms of their dependencies between one another as well as the time they were initiated. I.e which data will be updated and how it may potentially affect other transactions.

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

What is Redundancy?

A

Hardware which is used to prevent loss of data.
For example RAID (Redundant Array Inexpensive Disks) setup or mirror servers. (In simplest term two or three identical systems in different geographical locations so transactions always written to two or three storage facilities.)