1.3.2 Databases Flashcards
In the ACID acronym for transaction processing, what does the A stand for, and what does it mean?
Atomicity-
The concept that the components of a transaction are atomic, i.e. indivisible. The whole transaction must succeed or fail.
In the ACID acronym for transaction processing, what does the C stand for, and what does it mean?
Consistency-
Ensures that an illegal transaction is rejected so that the integrity of the database is upheld.
In the ACID acronym for transaction processing, what does the I stand for, and what does it mean?
Isolation-
Ensures that each transaction will be isolated and dealt with in a way that does not affect others.
In the ACID acronym for transaction processing, what does the D stand for, and what does it mean?
Durability-
Ensures that data is saved once a transaction has been completed. Even if there is a hardware failure immediately after a transaction, the data will be safe.
What is Serialisation?
Serialisation is the concept that, when two or more transactions are executed concurrently, the effect should be the same as if they had been executed serially
What is a technique that will allow transactions to be run at the same time, preventing them from interfering with each other?
Record locking
What does DMBS stand for?
DMBS stands for Database Management System, and is essentially nothing more than a computerized data-keeping system
What is record locking?
Record locking is a common method to allow concurrent transactions. The DBMS will lock the affected record until the update is completed
What is deadlocking?
Deadlocking is a state in which each member of a group waits for another member, including itself, to take action, such as sending a message or more commonly releasing a lock
What can the SQL command SET TRANSACTION do?
It can be used to initiate a database transaction
What does a COMMIT statement do in transactions?
A COMMIT statement will make the changes of a transaction permanent
What does ROLLBACK do in transactions?
it reverts any interim changes to the point prior to the transaction being started
What does SAVEPOINT do in transactions?
It creates a save point mid-transactions, meaning the changes can be partially rolled back instead of back to the start
What is normalisation?
Normalisation is a technique used to help reduce data duplication when designing data structures, also resulting in an improvement in data integrity
What is dependancy?
A value that varies in line with another value