0% found this document useful (0 votes)
28 views19 pages

Lecture 09

The document discusses different types of OLAP implementations including MOLAP. MOLAP uses a multi-dimensional data structure or cube to store and retrieve pre-aggregated data in constant time. The document outlines cube operations like roll-up, drill-down, slice, dice and pivot. It also discusses advantages of fast response time from MOLAP and drawbacks like long load times and sparse cubes.

Uploaded by

Muhammad Akhtar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views19 pages

Lecture 09

The document discusses different types of OLAP implementations including MOLAP. MOLAP uses a multi-dimensional data structure or cube to store and retrieve pre-aggregated data in constant time. The document outlines cube operations like roll-up, drill-down, slice, dice and pivot. It also discusses advantages of fast response time from MOLAP and drawbacks like long load times and sparse cubes.

Uploaded by

Muhammad Akhtar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Data Warehousing & Data Mining

Multidimensional OLAP (MOLAP)

1
Recap
• OLAP introduction
• OLAP Architecture
• OLAP FASMI Test

2
Outline
• MOLAP introduction
• Aggregations in MOLAP
• Cube Operations
• Advantages and Disadvantages

3
OLAP Implementations
1. MOLAP: OLAP implemented with a multi-dimensional
data structure.

2. ROLAP: OLAP implemented with a relational database.

4
MOLAP Implementations
OLAP has historically been implemented using a
multi_dimensional data structure or “cube”.

• Dimensions are key business factors for analysis:


– Geographies (city, district, division, province,...)
– Products (item, product category, product department,...)
– Dates (day, week, month, quarter, year,...)

• Very high performance achieved by O(1) time lookup


into “cube” data structure to retrieve pre_aggregated
results.

5
MOLAP Implementations
• No standard query language for querying MOLAP
- No SQL !

• Vendors provide proprietary languages allowing business


users to create queries that involve pivots, drilling down,
or rolling up.
- E.g. MDX of Microsoft

- Application Programming Interface (API)’s also provided for


probing the cubes.

6
Aggregations in MOLAP
 Sales volume as a function of (i) product, (ii) time,
and (iii) geography

 A cube structure created to handle this.


Dimensions: Product, Geography, Time S
W
E
Hierarchical summarization paths N
Milk
Industry Province Year 23

Product
Bread 8
Category Division Quarter Eggs 45
Butter 13
Product District Month Week 12
Jam
Juice 10
City Day
w1 w2 w3 w4 w5 w6
Zone Time 7
Cube operations
There are four fundamental cubes operations
• Rollup: summarize data
– The roll-up operation performs aggregation on a data cube either by
climbing up the hierarchy or by dimension reduction.

8
Cube operations
• Drill down: get more details
Drill-down is the reverse of roll-up. It can be done via
-Moving down the
concept hierarchy.
-Increasing a dimension

9
Cube operations
• Slice and dice: select and project
Slice: one dimension is selected, and a new sub-cube is created.

10
Cube operations
• Dice: select 2 or more dimensions that result in the creation of a sub-
cube.

11
Cube operations
• Pivot: you rotate the data axes to provide a substitute presentation of
data.

12
Querying the cube
40,000
Juices Soda Drinks 14,000
35,000 Juices Soda Drinks
30,000 12,000
25,000
20,000 Drill-Down 10,000
15,000 8,000
10,000
5,000 6,000
-
4,000
2001 2002 Roll-Up
2,000
-
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
2001 2002

12,000
OJ RK 8UP PK MJ BU AJ
10,000

8,000 Drill-down
6,000

4,000

2,000

-
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 13
2001 Ahsan Abdullah 2002
Querying the cube: Pivoting
40,000
Juices Soda Drinks
35,000
30,000
25,000
20,000
15,000
10,000
5,000
-
2001 2002

18,000
2001 2002
16,000
14,000
12,000
10,000
8,000
6,000
4,000
2,000
-
Orange Mango Apple Rola- 8-UP Bubbly- Pola-
juice juice juice Kola UP Kola

14
MOLAP evaluation
Advantages of MOLAP:

 Instant response (pre-calculated aggregates).

 Impossible to ask question without an answer.

 Value added functions (ranking, % change).

15
MOLAP evaluation
Drawbacks of MOLAP:

 Long load time ( pre-calculating the cube


may take days!).

 Very sparse cube (wastage of space) for


high cardinality (sometimes in small
hundreds). e.g. number of heaters sold in
Jacobabad or Sibi.

MOLAP are not capable of containing detailed


data. 16
MOLAP Implementation issues
Maintenance issue: Every data item
received must be aggregated into every
cube (assuming “to-date” summaries
are maintained). Lot of work.

17
MOLAP vs ROLAP

18
Reference
• https://www.tutorialspoint.com/dwh/pdf/dwh_olap.pdf
• https://www.tutorialspoint.com/dwh/dwh_multidimensional_olap.htm

19

You might also like