Docsity

Multidimensional OLAP, Implementations - Data Warehousing - Lecture Slides, Slides of Data Warehousing

Partial preview of the text

Download Multidimensional OLAP, Implementations - Data Warehousing - Lecture Slides and more Slides Data Warehousing in PDF only on Docsity!

1

Data Warehousing

Lecture- Multidimensional OLAP (MOLAP)

2

Multidimensional OLAP (MOLAP)

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
  • Languages generally involve extensive visual (click and drag) support.
  • Application Programming Interface (API)’s also provided for probing the cubes.

7

Cube operations

 Drill down: get more details

 e.g., given summarized sales as above, find breakup of sales by city within each region, or within Sindh

 Rollup: summarize data

 e.g., given sales data, summarize sales for last year by product category and region

 Slice and dice: select and project

 e.g.: Sales of soft-drinks in Karachi during last quarter

 Pivot: change the view of data

8

Drill-down

2,

4,

6,

8,

10,

12,

Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q

OJ RK 8UP PK MJ BU AJ

2001 2002

Querying the cube

5,000- 10,00015,

20,00025,

30,00035,

40,

2001 2002

Juices Soda Drinks

2,

4,

6,

8,

10,

12,

14,

Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q

Juices Soda Drinks

2001 2002

Drill-Down

Roll-Up

10

MOLAP evaluation

Advantages of MOLAP:

 Instant response (pre-calculated aggregates).

 Impossible to ask question without an answer.

 Value added functions (ranking, % change).

11

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.

13

Partitioned Cubes

 To overcome the space limitation of MOLAP, the cube is

partitioned.

 The divide&conquer cube partitioning approach helps

alleviate the scalability limitations of MOLAP implementation.

 One logical cube of data can be spread across multiple

physical cubes on separate (or same) servers.

 Ideal cube partitioning is completely invisible to end

users.

 Performance degradation does occurs in case of a join

across partitioned cubes.

14

Partitioned Cubes: How it looks Like?

Time

Geography

Men’s clothing Children clothing Bed linen

Sales data cube partitioned at a major cotton products sale outlet

Product

16

Summary