This content can't be printed from the browser. Use Export PDF with Pro for an offline copy.
IB Syllabus Requirements for Alternative databases and data warehouses
A3.4.1
Alternative approaches to storing data
A3.4.2
Data warehouses and business intelligence
A3.4.3
OLAP and data mining
A3.4.4
Distributed database features
A3.4.1
ALTERNATIVE APPROACHES TO STORING DATA
Database approaches suit different data structures, hosting arrangements and access requirements. To outline each approach, identify what sets it apart and the storage need it addresses.
NoSQL covers database approaches that do not require the conventional relational table model. Records can vary in structure.
A cloud database runs on cloud computing infrastructure and is accessed over a network. Hosting does not dictate the data model: it can be relational or NoSQL.
A spatial database stores data about locations, shapes and spatial relationships, and supports queries on that data. Rather than just matching ordinary attribute values, it can answer questions about distance, containment or overlap.
An in-memory database keeps its working data primarily in main memory instead of relying on secondary storage for each access. Avoiding repeated storage access supports rapid processing. Keeping data after power loss, though, requires additional persistence arrangements.
The comparison below shows what each approach changes and the storage need it addresses.
| Approach | Distinguishing feature | Storage need it addresses |
|---|---|---|
| NoSQL | Data need not use a conventional relational table structure | Records with varied or changing attributes |
| Cloud | Database runs on cloud infrastructure | Network access and adjustable hosting capacity |
| Spatial | Data and operations represent geographic or geometric relationships | Queries involving locations, areas and distances |
| In-memory | Working data is held primarily in main memory | Very low-latency access and processing |
A geographic information system for the invented Merebank Flood Service could use a spatial database to find which monitoring stations lie inside a flood-warning area. Here, the key capability is querying the relationship between points and an area.
For real-time analytics, the invented StagePulse Monitoring service could use an in-memory database to keep current equipment readings ready for rapid analysis. These are not the only applications; the choice depends on the data and the operations required.
The categories can overlap. A spatial database could run in the cloud, while a cloud-hosted NoSQL database could use memory to accelerate access.
Key terms: NoSQL, cloud, spatial, in-memory.
A3.4.2
DATA WAREHOUSES AND BUSINESS INTELLIGENCE
A data warehouse brings historical data from different sources into one store for analysis and reporting. It primarily supports decisions, rather than handling the continual changes that everyday transactions involve.
Business intelligence uses organizational data to produce information that supports decisions. By providing a consistent historical view across operational systems, a warehouse makes this possible.
The invented organization Lantern Equipment Hire keeps separate records for bookings, payments and maintenance. Managers can investigate how demand, revenue and maintenance vary over time once a warehouse combines the relevant data from these systems.
The figure traces this relationship. Bookings, payments and maintenance supply integrated historical data to the data warehouse; the warehouse then supports analysis and business decisions.
| Characteristic | Meaning | Contribution to storage and analysis |
|---|---|---|
| Append-only data | New records are added; existing historical records are normally kept | Keeps earlier observations available so changes and trends can be investigated |
| Subject-oriented data | Data is organized around subjects such as equipment, customers or revenue | Brings together the information needed to answer questions about a business subject |
| Integrated data | Data from different sources is combined using consistent names, formats, units and identifiers | Makes records comparable and stops differences between source systems from distorting results |
| Time-variant data | Records keep their historical context, such as the date or period they relate to | Supports comparisons between periods and analysis of trends |
| Non-volatile data | Once loaded, data stays stable rather than being routinely changed or deleted by operational activity | Gives repeated historical analysis a dependable basis |
| Data optimized for query performance | Data is arranged so analytical retrieval and aggregation are efficient | Reduces the work needed to answer large-scale reporting questions |
Suppose one source records hire duration in hours while another uses days. Before managers compare utilization, integration must reconcile those units. Bookings and maintenance also need a common equipment identifier so they refer to the same equipment.
Dated records make the data time-variant, allowing managers to compare equipment demand across periods. Keeping earlier records instead of replacing them preserves the evidence behind those comparisons.
Append-only and non-volatile are related, but they describe different ideas. Append-only concerns how new information is added; non-volatile concerns how stable information remains once loaded. Both describe normal analytical operating characteristics. They don't rule out exceptional corrections.
Query optimization serves a different workload from transaction processing. To find totals across many historical bookings, a manager needs arrangements that make aggregation efficient. Arrangements focused only on updating one current booking are less useful for that task.
Key terms: data warehouse, business intelligence, append-only data, subject-oriented data, integrated data, time-variant data, non-volatile data, data optimized for query performance.
A3.4.3
OLAP AND DATA MINING
Examining data from selected viewpoints is different from discovering useful patterns within it. Both support business intelligence, but they answer different kinds of question.
Online analytical processing (OLAP) lets users interactively analyse data across multiple dimensions, often using aggregated values. Users can investigate a measure from different viewpoints and change the level of detail they see.
For Lantern Equipment Hire, the measure could be the number of hires, with month, depot and equipment category as the dimensions. A manager could view all depots or select just one. They could also compare equipment categories or move from monthly totals to a yearly total. The figure shows these dimensions around the measure.
By moving from a broad result to the detail behind it, a manager can use OLAP to support business intelligence. If total hires rise, for example, the manager can investigate the figures by depot and equipment category to identify where the increase occurred.
Data mining involves discovering useful patterns, relationships or unusual cases within data sets. It can reveal information that individual records or routine totals do not make obvious.
In practice, data mining may examine very large data sets. The small invented extract below makes the differences between techniques visible. On its own, it is not enough to establish reliable business conclusions.
| Customer | Visits | Spending in currency units | Known customer category |
|---|---|---|---|
| A | 1 | 10 | Occasional |
| B | 2 | 20 | Occasional |
| C | 2 | 20 | Occasional |
| D | 6 | 60 | Frequent |
| E | 7 | 70 | Frequent |
| F | 2 | 90 | Unknown |
Classification uses a record's attributes to assign it to a predefined category. Here, the labelled customers suggest that higher visit counts belong to the Frequent category, while lower counts belong to Occasional. Using visits, F would be assigned to Occasional. A business could use classification to direct different communications to established customer categories.
Clustering groups records by similarity without requiring predefined category labels. If we ignore the known categories, visits and spending suggest a low-activity group containing A, B and C, with D and E forming a higher-activity group. F does not fit either group closely. Clustering can reveal customer segments that the organization had not defined beforehand.
Regression estimates a numerical value from one or more input attributes. For A to E, spending follows the relationship of 10 currency units per visit. A customer making 3 visits would therefore have an estimated spending of 30 currency units. These estimates can support revenue or demand planning, though real data need not follow a perfect relationship.
Association rule discovery identifies items or events that tend to occur together. Suppose hire records repeatedly contain both a work lamp and an extension cable. This suggests an association that could inform equipment bundles or stock planning. It does not show that one item causes the other to be hired.
Sequential pattern discovery identifies recurring patterns in which order matters. Repeated records of an initial hire followed later by an extension could help the organization anticipate extension requests. The order distinguishes this from merely finding two items in the same hire.
Anomaly detection identifies records that differ substantially from an expected pattern. F has 2 visits but spends 90 currency units, compared with 20 for B and C. That merits investigation, but an unusual record could reflect a valid expensive hire rather than an error.
With OLAP, users explore selected dimensions and totals. Data mining can instead produce category assignments, groups, numerical estimates, associations, ordered patterns or unusual cases. To turn these outputs into useful business intelligence, users must interpret them in context rather than treat them as automatic explanations.
Key terms: online analytical processing (OLAP), data mining, classification, clustering, regression, association rule discovery, sequential pattern discovery, anomaly detection, business intelligence.
A3.4.4
DISTRIBUTED DATABASE FEATURES
A distributed database is a logically connected database that stores its data across multiple networked sites. Users may access it as one database, even though different places handle storage and processing.
Describe how the data is distributed, then explain how the system keeps access reliable, consistent and secure.
Data partitioning divides a database into subsets stored at different sites. With Replication, multiple sites hold copies of the same data.
Lantern Equipment Hire could partition bookings between a North depot and a South depot while keeping a replicated equipment catalogue at both. The figure shows the distinction: bookings are divided; the catalogue is copied.
Partitioning can keep relevant records near their main users while spreading the workload. Replication can improve availability and let users read from a nearby copy. Changes still need coordination, or the copies may give conflicting answers.
| Feature | What it does |
|---|---|
| Concurrency control | Coordinates simultaneous transactions so their operations do not interfere incorrectly, such as two customers securing the same available item |
| Data consistency | Keeps data in agreement with required rules and coordinates related values and replicas |
| Data partitioning | Divides records or other parts of the database among sites |
| Data security | Restricts access and protects data stored at sites and transmitted between them |
| Distribution transparency | Hides how data is distributed so users can work with a single logical database |
| Fault tolerance | Lets the system continue providing an appropriate service despite failures, for example by using another replica when a site becomes unavailable |
| Global query processing | Coordinates a query that needs data from multiple sites and combines the results |
| Location transparency | Lets users access data without knowing its physical storage location |
| Replication | Stores copies of the same data at more than one site |
| Scalability | Lets the system accommodate growth in data or workload by increasing resources, including adding sites |
Location transparency is a particular aspect of distribution transparency. A user should need only the logical table name, even if the storage location changes. Users should not have to manage the underlying distribution themselves.
Suppose two sites each show the same item as available. If each accepts bookings independently, both may promise that item to different customers. Storing another copy isn't enough: the system must coordinate concurrent access and the resulting updates.
Coordination becomes harder when the network is slow or a site is unavailable. Replication therefore does not automatically guarantee immediate agreement or uninterrupted access. The database must control how it accepts and shares updates.
ACID is the set of transaction properties atomicity, consistency, isolation and durability. For a distributed database, these properties must cover the transaction's effects across every participating site.
| Property | Meaning | Distributed booking example |
|---|---|---|
| Atomicity | A transaction takes effect completely or has no effect | The booking record and the change to equipment availability must both take effect, even if they are stored at different sites |
| Consistency | A transaction preserves the database's defined rules and constraints | A successful booking must leave the equipment allocation valid |
| Isolation | Concurrent transactions must not interfere in ways that produce an invalid combined result | Competing bookings for the same item must be coordinated |
| Durability | Once committed, a transaction's effects persist despite subsequent failure | A confirmed booking must remain recorded after a restart |
Atomicity prevents partial cross-site changes. Isolation controls interference between transactions, while durability protects committed results. Consistency requires transactions to preserve the database's rules. Replicated copies must also stay appropriately synchronized to provide a coherent distributed view.
Sites need to coordinate to provide these guarantees. Distributing or replicating data does not, by itself, establish ACID behaviour.
Key terms: distributed database, concurrency control, data consistency, data partitioning, data security, distribution transparency, fault tolerance, global query processing, location transparency, replication, scalability, ACID, atomicity, consistency, isolation, durability.