3.2.4

Principles of Data Storage

Test yourself

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.

Illustrative background for Transaction processingIllustrative background for Transaction processing ?? "content

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.
Illustrative background for Record lockingIllustrative background for Record locking ?? "content

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.
Illustrative background for RedundancyIllustrative background for Redundancy ?? "content

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.
Illustrative background for Redundancy cont.Illustrative background for Redundancy cont. ?? "content

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)

ACID ensures all transactions complete successfully, or if they fail, the data is left as it was before.

Illustrative background for AtomicityIllustrative background for Atomicity ?? "content

Atomicity

  • Atomicity is the classification of transactions as a single task that either passes or fails.
Illustrative background for ConsistencyIllustrative background for Consistency ?? "content

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.
Illustrative background for IsolationIllustrative background for Isolation ?? "content

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.
Illustrative background for DurabilityIllustrative background for Durability ?? "content

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.

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Procedurally

6.3Thinking Logically

7Problem Solving & Programming

8Algorithms

Go student ad image

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

Book a free trial lesson