Unit 1 of 4 · M.Sc IT Sem 4

Unit 1: Data warehousing fundamentals

Data Warehousing and Data Mining notes · PTU syllabus (PGCA1941)

3 min read7 topics9 exam questions
On this page
  1. Unit summary
  2. The need for data warehousing
  3. Components of a data warehouse
  4. Characteristics of a data warehouse
  5. Mapping the warehouse to a multiprocessor architecture
  6. Operational vs informational data stores
  7. OLAP vs OLTP
  8. OLAP operations with an example
  9. Key terms
  10. Quick revision
  11. Important questions

Unit summary

A data warehouse brings together data from many operational systems so managers can analyse history and trends. This unit covers the components and architecture of a data warehouse, its mapping to multiprocessor architectures, operational vs informational data stores, and OLAP vs OLTP with OLAP operations.

After this unit you can

  • Explain the need for and components of a data warehouse
  • Map a warehouse to parallel (multiprocessor) architectures
  • Distinguish operational and informational data stores
  • Compare OLAP and OLTP and apply OLAP operations

PTU syllabus topics

  • Data warehouse components and architecture
  • mapping to multiprocessor architecture
  • need for data warehousing
  • operational vs informational data stores
  • OLAP vs OLTP and their differences
  • OLAP operations
ComparisonOLTP vs OLAP
OLTP
OLAP

Purpose

Run daily operations

Analyse for decisions

Data

Current, detailed

Historical, summarised

Operations

Insert, update, delete

Read, aggregate, slice

Schema

Normalised

Star or snowflake

1

Topic 1

The need for data warehousing

  • Managers need integrated, historical, summarised data to analyse trends — but operational systems are separate, keep only current data, use different formats and slow down if heavy analytical queries run on them.
Key termsDrivers of data warehousing
Integrated view
Combine sales, finance, HR and CRM data
Historical analysis
Five or ten years of trends
Fast analytical queries
Without disturbing transaction systems
Data quality
Cleaned, consistent data
Competitive advantage
Better, faster decisions

Example

A retail chain with 200 stores wants to compare festive-season sales by region and category over five years; store billing databases keep only three months of data, in different formats.

2

Topic 2

Components of a data warehouse

ProcessData warehouse components
  1. 1

    Source systems

    ERP, CRM, files, web logs

  2. 2

    Staging area and ETL

    Extract, clean, transform, load

  3. 3

    Warehouse database

    Integrated, subject-oriented, historical store

  4. 4

    Metadata repository

    Technical and business metadata

  5. 5

    Data marts

    Department-specific subsets

  6. 6

    Access tools

    Query, reporting, OLAP, data mining, dashboards

3

Topic 3

Characteristics of a data warehouse

FrameworkInmon's four characteristics
  • Subject-oriented

    Organised around subjects — customer, product, sales — not applications

  • Integrated

    Consistent names, codes and units across sources

  • Time-variant

    Every record linked to a time period; long history

  • Non-volatile

    Loaded and read; not updated in place

4

Topic 4

Mapping the warehouse to a multiprocessor architecture

  • Large warehouses need parallelism to load and query terabytes quickly.
ComparisonParallel architectures
How it works
Warehouse fit

Shared memory (SMP)

All CPUs share memory and disks

Simple; limited scalability

Shared disk (cluster)

Nodes have own memory, share disks

Good availability (Oracle RAC)

Shared nothing (MPP)

Each node owns its CPU, memory and disk

Best scalability (Teradata, Redshift, Synapse)

Key termsTypes of parallelism
Inter-query
Different queries on different processors
Intra-query
One query split into parallel operations
Horizontal (partitioned)
Data partitioned across nodes, same operation on each
Vertical (pipelined)
Output of one operation flows to the next in parallel
  • Data partitioning: round-robin, hash, or range (e.g., by month) so each node scans only its share.
5

Topic 5

Operational vs informational data stores

ComparisonOperational and informational data
Operational data store
Informational data store (warehouse)

Purpose

Run day-to-day operations

Support analysis and decisions

Data

Current, detailed, changing

Historical, summarised and detailed, stable

Access

Many short reads and writes

Few, large read-only queries

Users

Clerks, customers

Managers, analysts

Design

Normalised for updates

Denormalised (star schema) for queries

  • An operational data store (ODS) may also integrate current data from several systems for near-real-time operational reporting.
6

Topic 6

OLAP vs OLTP

ComparisonOLTP and OLAP
OLTP
OLAP

Full form

Online transaction processing

Online analytical processing

Function

Day-to-day transactions

Analysis and decision support

Data

Current, detailed

Historical, consolidated

Queries

Simple, many, short; insert and update

Complex, few, long; read mostly

Database design

Normalised ER model

Star or snowflake schema; data cube

Size

Gigabytes

Terabytes and more

Example

ATM withdrawal, railway booking

Quarterly sales by region and product

7

Topic 7

OLAP operations with an example

  • Cube: sales by Time (quarter), Location (city) and Product (category).
ProcessOLAP operations on a sales cube
  1. 1Roll-up

    City → state: total sales of Punjab

  2. 2Drill-down

    Quarter → month: sales of each month of Q3

  3. 3Slice

    Time = Q4: a two-dimensional view

  4. 4Dice

    Q3–Q4, Ludhiana and Delhi, mobiles and laptops: a sub-cube

  5. 5Pivot

    Swap rows and columns to view products by city

  • OLAP types: MOLAP (multidimensional arrays; fast), ROLAP (relational tables; scalable), HOLAP (hybrid).

Key terms

Data warehouse
Subject-oriented, integrated, time-variant, non-volatile collection of data for decisions
MPP
Massively parallel, shared-nothing architecture
ODS
Operational data store holding current integrated data
OLAP
Online analytical processing
Data mart
Departmental subset of a warehouse

Quick revision

  • Need for warehousing; components from sources to access tools.
  • SMP, shared disk, shared nothing; inter-, intra-query, horizontal, vertical parallelism.
  • Operational vs informational stores.
  • OLAP vs OLTP; roll-up, drill-down, slice, dice, pivot.

Important exam questions

Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).

Short-answer questions

  1. Q1.Why do organisations need a data warehouse?
  2. Q2.List the components of a data warehouse.
  3. Q3.What is shared-nothing architecture?
  4. Q4.Distinguish operational and informational data.
  5. Q5.Give two differences between OLAP and OLTP.
  6. Q6.What is the slice operation?

Long-answer questions

  1. Q1.Explain data warehouse components and architecture.
  2. Q2.Explain how a data warehouse is mapped to multiprocessor architectures.
  3. Q3.Compare OLAP and OLTP and explain OLAP operations with an example.

Stuck on this unit?

Message SBS on WhatsApp for help with Data Warehousing and Data Mining, or to ask about studying M.Sc IT at Synetic.

WhatsApp us