How unit 2 is examined
This unit covers OLAP concepts, the ROLAP/MOLAP/HOLAP server types, the five OLAP operations and warehouse hardware with operational design; OLAP operations and hardware carry the marks.
OLAP Systems: Basic concepts, OLAP queries
Low weight
Definition. OLAP (Online Analytical Processing) is a technique for interactive, multidimensional analysis of large volumes of historical, summarised data, whereas OLTP (Online Transaction Processing) handles the day-to-day insert, update and delete transactions of an organisation.
Key points.
- OLAP views data as a multidimensional cube of measures (such as sales) along dimensions (such as time, item and location), so a query is a request to summarise, navigate or slice that cube.
- OLAP queries are complex, read-mostly and aggregate-heavy (sum, count, average grouped by dimensions), and each may scan millions of rows, while OLTP queries are short and touch a few records.
- OLTP is application-oriented and used by clerks and database professionals, whereas OLAP is subject-oriented and used by managers, executives and analysts for decision support.
- OLTP keeps current, detailed, normalised data in the hundreds of MB to GB, while OLAP keeps historical, consolidated, denormalised data in the GB to TB range.
| Feature | OLTP | OLAP |
|---|---|---|
| Orientation | Transaction (application) | Analysis (subject) |
| Users | Clerks, DBAs, IT staff | Managers, analysts, executives |
| Data | Current, detailed, normalised | Historical, summarised, multidimensional |
| Queries | Short, simple, read and write | Complex, aggregate, mostly read |
| Access | Few records, indexed | Millions of records, scans |
| Metric | Transactions per second | Query response time |
| Size | MB to GB | GB to TB |
Answer frame. Open with the two definitions; draw the comparison table with all seven rows; close with "OLTP runs the business, OLAP helps decide how to run it."
Asked: [7 marks] (May 2023) Compare and contrast online transaction processing with online analytical processing.
Types of OLAP servers
Low weight
Definition. An OLAP server sits between the data warehouse and the client tool and answers multidimensional queries; it is ROLAP (relational), MOLAP (multidimensional array) or HOLAP (hybrid) according to where the data is stored.
Key points.
- ROLAP keeps detail and aggregates in relational tables and turns each cube request into SQL, so it scales to very large data but answers more slowly (example: Microstrategy).
- MOLAP stores the data in pre-computed multidimensional arrays, so queries are very fast through direct array indexing, but the cube is limited in size and sparse cubes waste space (example: Essbase).
- HOLAP keeps detailed data in the relational store and aggregates in a MOLAP cube, so it gives good scalability with fast summary queries (example: Microsoft SQL Server Analysis Services).
| Feature | ROLAP | MOLAP | HOLAP |
|---|---|---|---|
| Storage | Relational tables | Multidimensional arrays | Detail relational, summary array |
| Scalability | Very high | Limited | High |
| Speed | Slower, runs SQL | Fastest | Fast for summaries |
| Pre-computation | Little | Full | Partial |
| Use case | Huge, detailed data | Small dense cubes | Balanced need |
Answer frame. Open with the definition of an OLAP server; draw the table above; close with the use case of each type.
Asked: [7 marks] (May 2023) Differentiate ROLAP, MOLAP and HOLAP server functionalities.
OLAP operations
High weight
Definition. OLAP operations are the analytical manipulations of a data cube, namely roll-up, drill-down, slice, dice and pivot, that let a user view the multidimensional data model at different levels and angles. The multidimensional data model stores measures (numeric facts, e.g. sales) in a data cube whose edges are dimensions (e.g. time, item, location), each dimension having a concept hierarchy (day, month, quarter, year).
Diagram.
Key points.
- Roll-up aggregates data by climbing a concept hierarchy (city to country) or by removing a dimension, so the cube becomes smaller and more summarised.
- Drill-down is the reverse of roll-up: it moves to finer detail (quarter to month) or adds a dimension.
- Slice fixes one dimension to a single value and yields a sub-cube of one lower dimension, such as time = Q1.
- Dice selects a sub-cube by choosing ranges or sets of values on two or more dimensions, such as time in Q1 or Q2 and item in Mobile or Laptop.
- Pivot (rotate) turns the axes of the cube or report to give an alternative view, such as swapping rows and columns.
- These operations are performed on the cube and let a manager move interactively from summary to detail without writing SQL.
Example. Sales cube (in thousand Rs), dimensions time, item, location.
| Operation | Effect on the sales cube |
|---|---|
| Roll-up | Location city to country: Bhopal 40 + Indore 30 = India 70 |
| Drill-down | Quarter Q1 to months: Jan 20, Feb 25, Mar 25 (Q1 = 70) |
| Slice | time = Q1 gives a 2-D item by location table |
| Dice | time in (Q1, Q2), item in (Mobile, Laptop), location = Bhopal |
| Pivot | Rows item and columns location become rows location and columns item |
Answer frame. Open by defining the multidimensional model, data cube and OLAP; draw a 3-D cube with the three dimensions labelled and show each operation beside it; develop points 1-5 in order with the example table; close with "together they give the analyst a fast, interactive view of the same data at any level."
Pitfall: Slice uses one value of one dimension, while dice uses ranges on two or more dimensions; confusing them loses marks.
Asked: [7 marks] (May 2023, May 2024, Jun 2025) Describe the various OLAP operations performed on the multidimensional data model; discuss typical OLAP operations with an example; with necessary diagrams and data cubes explain the operations.
Data Warehouse Hardware and Operational Design
High weight
Definition. Warehouse hardware and operational design is the choice of servers, storage, parallel architecture and networks, together with the day-to-day processes of loading, refreshing, partitioning and managing the data, so that OLAP queries and mining run fast on very large data.
Diagram.
Key points.
- Warehouse queries scan and aggregate huge tables, so the server needs high-performance multi-core CPUs and large memory to hold working data, indexes and intermediate results.
- Storage must be large and fast: disk arrays (RAID) give capacity, striping for throughput and redundancy for fault tolerance, and SAN or SSD tiers speed up hot data.
- Parallel architectures are the key to speed: SMP shares memory among processors, MPP or clusters use shared-nothing nodes, and NUMA sits between them; queries run in parallel across partitions.
- The network and I/O bandwidth between source systems, warehouse and clients must be high, as I/O is usually the bottleneck for scans and mining workloads.
- Scalability is planned by adding processors, disks or nodes as data and users grow, with query throughput and mining run-time as the measures.
- Operational design covers ETL (extract, clean, transform and load), a regular refresh schedule in the batch window, and partitioning of large tables by time to speed queries and archiving.
- Operations also include indexing and summary tables for aggregates, monitoring performance, and capacity planning.
- An example architecture is source systems feeding ETL into a warehouse on a parallel server with a disk array, and OLAP and mining tools on top.
Answer frame. Open with the definition and why OLAP and mining need strong hardware; draw the architecture diagram; develop points 1-5 (hardware) and then 6-7 (operations); close with the scalability and throughput point.
Asked: [14 marks] (May 2024, Jun 2025) Discuss data warehouse hardware and operational design; discuss the key hardware considerations, focusing on components supporting OLAP queries and data mining.
Security, Backup And Recovery
Not asked since 2022
Definition. Warehouse security protects the sensitive data by controlling who may access what, while backup and recovery copy the warehouse regularly so it can be restored after a failure.
Key points.
- Security uses authentication, role-based authorisation, views that hide rows and columns, encryption and audit logs.
- Backups may be full, incremental or differential, taken in the batch window after loads, with copies kept off-site.
- Recovery restores the last full backup and applies later incrementals or logs; the warehouse is read-mostly, so it can be reloaded from sources.
- Plans define recovery time and are tested periodically.
Last-minute revision
- OLAP is analysis of historical, summarised, multidimensional data; OLTP handles current transactions.
- OLTP users are clerks, OLAP users are managers and analysts.
- ROLAP uses relational tables, MOLAP uses arrays, HOLAP is a hybrid of both.
- MOLAP is fastest, ROLAP is most scalable, HOLAP balances the two.
- Five operations: roll-up, drill-down, slice, dice, pivot.
- Roll-up climbs a hierarchy or drops a dimension; drill-down is its reverse.
- Slice fixes one dimension value; dice selects on two or more dimensions.
- Pivot rotates the axes of the cube.
- Hardware needs: multi-core CPU, memory, RAID disk arrays, fast I/O and network.
- Parallel architectures: SMP, MPP or cluster, NUMA.
- Operational design: ETL, refresh, partitioning, indexing, monitoring.
- Backups are full, incremental or differential, with off-site copies.
Memory hooks
- Operations: "R D S D P", Roll, Drill, Slice, Dice, Pivot.
- Slice is one value, dice is a box of values.
- ROLAP = Relational, MOLAP = Multidimensional array, HOLAP = Hybrid.
- Hardware trio: CPU, Disk, Network, all made parallel.
- OLTP runs the shop, OLAP studies the shop.
Coverage checklist
- OLAP Systems: Basic concepts, OLAP queries: OLTP versus OLAP comparison (7 marks, May 2023).
- Types of OLAP servers: ROLAP, MOLAP, HOLAP differences (7 marks, May 2023).
- OLAP operations: five operations with data cube example and diagram (7 marks, May 2023, May 2024, Jun 2025).
- Data Warehouse Hardware and Operational Design: hardware and operational design (14 marks, May 2024, Jun 2025).
- Security, Backup And Recovery: not asked recently, taught briefly.