3.2.4
Principles of Data Storage
Principles of Data Storage
Principles of Data Storage
In any organisation, it is imperative that the data stored is as accurate as possible. A set of principles are implemented to ensure data accuracy.
Transaction processing
Transaction processing
- A transaction on a database comprises of a series of small actions.
- For example, buying cinema tickets.
- A database management system (DBMS) has to ensure that all of the possible concurrent transactions (like multiple bookings at the same time) will leave the data in the same state as if each transaction was performed one after another.
Record locking
Record locking
- Record locking is used to lock a record in a table until a transaction is completed.
- If the transaction fails, the record is unlocked for someone else to access.
Redundancy
Redundancy
- Databases for organisations such as hospitals, military forces and banks need to ensure they have redundancies built into their database systems.
- This means they will have multiple clone database systems all running at the same time that are all mirror images of one another.
Redundancy cont.
Redundancy cont.
- Redundant systems are usually kept in geographically different places. These systems constantly monitor each other.
- If one system goes down, then other systems can take over and will update the system that has gone down.
- One of the other redundancy systems instantly takes over and continues to provide the service needed.
Atomicity, Consistency, Isolation and Durability (ACID)
Atomicity, Consistency, Isolation and Durability (ACID)
ACID ensures all transactions complete successfully, or if they fail, the data is left as it was before.
Atomicity
Atomicity
- Atomicity is the classification of transactions as a single task that either passes or fails.
Consistency
Consistency
- Consistency ensures that the data being committed as part of the transaction complies both with validation rules and referential integrity.
- This means a record cannot be added or updated if it uses a value in a foreign key field that doesn’t exist in the linked table.
Isolation
Isolation
- The isolation part of the principals ensures that the data is locked whilst a transaction is processing.
- The data in the database should look the same as if all transactions happened sequentially instead of concurrently.
Durability
Durability
- Durability ensures that once a transaction is completed, it is committed to the database and will stay in the database for good.
- When booking your cinema tickets, the DBMS will make use of a buffer and record locks to store the individual parts of a transaction until it is all completed.
- At this point, the transaction is committed to the database permanently.
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Jump to other topics
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered