How is a database made fast, accurate and secure for many users at once?
Optimising databases with indexing, maintaining data integrity, and securing databases with access rights, encryption and backup, including concurrency in multi-user systems.
A CCEA A-Level Digital Technology answer on optimising databases with indexing, maintaining data integrity, and securing databases with access rights, encryption, backup and concurrency control in multi-user systems.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
CCEA wants you to explain how a database is optimised (indexing), how data integrity is maintained, and how a database is secured (access rights, encryption, backup), including how concurrent access by many users is controlled. A real information system must be fast, accurate and secure for many users at once.
Optimising with indexing
Indexing a field that is frequently searched or sorted greatly speeds up those queries. The cost is extra storage and slower writes, because every insert, update or delete must also update the index. So you index the fields that queries use most, not every field.
Maintaining data integrity
Referential integrity is examined specifically: it prevents "orphan" records, for example a booking whose student has been deleted, by enforcing that foreign-key values always match an existing primary key.
Securing the database
A database holds valuable and often personal data, so it must be secured:
- Access rights (permissions). Each user is granted only the rights they need, for example read-only for some staff and read-write for others, limiting what a compromised or careless account can do.
- Encryption. Data is encrypted so that, if it is stolen or intercepted, it cannot be read without the key.
- Backup and recovery. Regular backups (full and incremental) let the database be restored after hardware failure, corruption, ransomware or accidental deletion.
- Authentication. Strong passwords and, increasingly, multi-factor authentication confirm who is accessing the data.
Concurrency in multi-user systems
Without control, two users editing the same record can cause the lost update problem, where one update overwrites the other. Locking serialises the conflicting updates; the trade-off is that users may have to wait, and badly managed locks can cause a deadlock.
Why this matters
A database that is slow, inaccurate or insecure fails its users and may breach data protection law. Indexing keeps it responsive, integrity rules keep it correct, and security and concurrency control keep it safe and reliable for many users, which is exactly what an operational information system requires.
Try this
Q1. State one benefit and one drawback of adding an index to a field. [2 marks]
- Cue. Benefit: faster searching and sorting on that field. Drawback: extra storage and slower inserts, updates and deletes because the index must be maintained.
Q2. Explain what referential integrity prevents. [2 marks]
- Cue. It ensures a foreign key always references an existing primary key, preventing orphan records such as an order linked to a customer that does not exist.
Q3. State one security measure that makes stolen data unreadable. [1 mark]
- Cue. Encryption.
Exam-style practice questions
Practice questions written in the style of CCEA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
CCEA A2 14 marksExplain what an index is in a database and how it improves performance, and state one drawback.Show worked answer →
Define an index, explain the speed-up, then give the cost.
An index is a data structure that stores the values of a chosen field together with pointers to the records that hold them, much like the index of a book. When a query searches or sorts on that field, the database can use the index to find matching records quickly instead of scanning every record in the table.
Drawback: the index takes extra storage, and it must be updated every time a record is inserted, updated or deleted, which slows down those write operations. So indexing the wrong fields, or too many fields, can cost more than it saves.
Markers reward the definition (a structure of values plus pointers), the explanation that searches and sorts avoid a full scan, and a valid drawback (extra storage and slower writes).
CCEA A2 15 marksExplain the problem of concurrent access in a multi-user database and describe how record locking helps.Show worked answer →
State the problem, then describe the locking solution.
In a multi-user database, two or more users may try to read and update the same record at the same time. Without control, one user's update can overwrite another's (the lost update problem), leaving the data inconsistent.
Record locking solves this by locking a record while one user is updating it, so other users cannot change it until the lock is released. This serialises the conflicting updates so each is applied to the latest data. A trade-off is that locking can make other users wait, and poorly managed locks can cause a deadlock where two transactions each wait for the other.
Markers reward the description of the concurrency problem (simultaneous updates, lost update), how locking prevents it, and ideally the trade-off (waiting or deadlock).
Related dot points
- The features of a relational database (tables, primary and foreign keys, relationships), entity relationship modelling, and normalisation to third normal form.
A CCEA A-Level Digital Technology answer on relational databases: tables, primary and foreign keys and relationships, entity relationship modelling, and normalisation to third normal form to remove redundancy.
- Using a database through Structured Query Language (SELECT, INSERT, UPDATE, DELETE) and query by example, including selecting, sorting and joining data.
A CCEA A-Level Digital Technology answer on using a database with Structured Query Language: SELECT, INSERT, UPDATE and DELETE, filtering, sorting and joining tables, and the query by example alternative.
- The impact of legislation on individuals and organisations (data protection, computer misuse, copyright) and the moral, ethical and social issues raised by digital technology.
A CCEA A-Level Digital Technology answer on the impact of legislation (data protection, computer misuse and copyright) on individuals and organisations, and the moral, ethical and social issues raised by digital technology.
- Network protocols and the role of TCP/IP, transmission media (wired and wireless), and error detection and correction techniques such as parity, checksum and the check digit.
A CCEA A-Level Digital Technology answer on network protocols and TCP/IP, wired and wireless transmission media, and error detection and correction techniques including parity, checksums and check digits.
- Data mining and the discovery of patterns in large data sets, the characteristics of big data, and the uses, benefits and ethical concerns of analysing large data sets.
A CCEA A-Level Digital Technology answer on data mining (discovering patterns in large data sets), the characteristics of big data, and the uses, benefits and ethical concerns of analysing large data sets.
Sources & how we know this
- CCEA GCE Digital Technology specification — CCEA (2016)