SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Data Warehousing
Lecture-9
Multidimensional OLAP (MOLAP)
1
Mamuna Fatima
OLAP Implementations
1. MOLAP: OLAP implemented with a multi-dimensional
data structure.
2. ROLAP: OLAP implemented with a relational database.
3. HOLAP: OLAP implemented as a hybrid of MOLAP and
ROLAP.
2
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.
3
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.
4
Aggregations in MOLAP
5
 Sales volume as a function of (i) product, (ii) time,Sales volume as a function of (i) product, (ii) time,
and (iii) geographyand (iii) geography
 A cube structure created to handle this.A cube structure created to handle this.
Dimensions: Product, Geography, Time
Industry
Category
Product
Hierarchical summarization pathsHierarchical summarization paths
Product
G
eog
Time
w1 w2 w3 w4 w5 w6
Milk
Bread
Eggs
Butter
Jam
Juice
N
E
W
S
12
13
45
8
23
10
Province
Division
District
City
Zone
Year
Quarter
Month Week
Day
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
6
Querying the cube
-
5,000
10,000
15,000
20,000
25,000
30,000
35,000
40,000
2001 2002
Juices Soda Drinks
Ahsan Abdullah
7
Drill-down
-
2,000
4,000
6,000
8,000
10,000
12,000
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OJ RK 8UP PK MJ BU AJ
2001 2002
-
2,000
4,000
6,000
8,000
10,000
12,000
14,000
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Juices Soda Drinks
2001 2002
Drill-Down
Roll-Up
Querying the cube: Pivoting
-
5,000
10,000
15,000
20,000
25,000
30,000
35,000
40,000
2001 2002
Juices Soda Drinks
-
2,000
4,000
6,000
8,000
10,000
12,000
14,000
16,000
18,000
Orange
juice
Mango
juice
Apple
juice
Rola-
Kola
8-UP Bubbly-
UP
Pola-
Kola
2001 2002
8
MOLAP evaluation
9
Advantages of MOLAP:

Instant response (pre-calculated aggregates).

Impossible to ask question without an answer.

Value added functions (ranking, % change).
MOLAP evaluation
10
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 Implementation issues
Maintenance issue: Every data item received
must be aggregated into every cube (assuming
“to-date” summaries are maintained). Lot of
work.
Storage issue: As dimensions get less detailed
(e.g., year vs. day) cubes get much smaller, but
storage consequences for building hundreds of
cubes can be significant. Lot of space.
11

Weitere ähnliche Inhalte

Ähnlich wie Dwh lecture 11-molap

Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Shani729
 
Intro to Data warehousing Lecture 06
Intro to Data warehousing   Lecture 06Intro to Data warehousing   Lecture 06
Intro to Data warehousing Lecture 06AnwarrChaudary
 
Cs437 lecture 10-12
Cs437 lecture 10-12Cs437 lecture 10-12
Cs437 lecture 10-12Aneeb_Khawar
 
OLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingOLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingWalid Elbadawy
 
CSCMP 2014: Using S&OP to Improve Enterprise Resiliency
CSCMP 2014: Using S&OP to Improve Enterprise ResiliencyCSCMP 2014: Using S&OP to Improve Enterprise Resiliency
CSCMP 2014: Using S&OP to Improve Enterprise ResiliencyAlyssaVallie
 
Implementation of SAP BI in Coca Cola
Implementation of SAP BI in Coca ColaImplementation of SAP BI in Coca Cola
Implementation of SAP BI in Coca ColaUjjwal Joshi
 
Business case for SAP HANA
Business case for SAP HANABusiness case for SAP HANA
Business case for SAP HANAAjay Kumar Uppal
 
PPT AnalyticsCloud0415
PPT AnalyticsCloud0415PPT AnalyticsCloud0415
PPT AnalyticsCloud0415Inspirage
 
Cameron Hawthorne - E Bus Sales analysis with Olap and Disco
Cameron Hawthorne - E Bus Sales analysis with Olap and DiscoCameron Hawthorne - E Bus Sales analysis with Olap and Disco
Cameron Hawthorne - E Bus Sales analysis with Olap and DiscoInSync Conference
 
Lecture 11
Lecture 11Lecture 11
Lecture 11Shani729
 
Sales Wave Apps - Partner Training
Sales Wave Apps - Partner TrainingSales Wave Apps - Partner Training
Sales Wave Apps - Partner TrainingSalesforce Partners
 
New Features in SPI Buyer Direct
New Features in SPI Buyer DirectNew Features in SPI Buyer Direct
New Features in SPI Buyer DirectSPI Conference
 
20140409 sap innovation forum staples bi road to hana
20140409 sap innovation forum staples bi road to hana20140409 sap innovation forum staples bi road to hana
20140409 sap innovation forum staples bi road to hanaAlexander Steegers
 
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...Lora Cecere
 
Anaplan and Valizant webinar: Improving your S&OP investment
Anaplan and Valizant webinar: Improving your S&OP investmentAnaplan and Valizant webinar: Improving your S&OP investment
Anaplan and Valizant webinar: Improving your S&OP investmentAnaplan
 

Ähnlich wie Dwh lecture 11-molap (20)

Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13
 
Intro to Data warehousing Lecture 06
Intro to Data warehousing   Lecture 06Intro to Data warehousing   Lecture 06
Intro to Data warehousing Lecture 06
 
Cs437 lecture 10-12
Cs437 lecture 10-12Cs437 lecture 10-12
Cs437 lecture 10-12
 
OLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingOLAP OnLine Analytical Processing
OLAP OnLine Analytical Processing
 
CSCMP 2014: Using S&OP to Improve Enterprise Resiliency
CSCMP 2014: Using S&OP to Improve Enterprise ResiliencyCSCMP 2014: Using S&OP to Improve Enterprise Resiliency
CSCMP 2014: Using S&OP to Improve Enterprise Resiliency
 
Implementation of SAP BI in Coca Cola
Implementation of SAP BI in Coca ColaImplementation of SAP BI in Coca Cola
Implementation of SAP BI in Coca Cola
 
OLAP
OLAPOLAP
OLAP
 
Olap queries
Olap queriesOlap queries
Olap queries
 
Business case for SAP HANA
Business case for SAP HANABusiness case for SAP HANA
Business case for SAP HANA
 
PPT AnalyticsCloud0415
PPT AnalyticsCloud0415PPT AnalyticsCloud0415
PPT AnalyticsCloud0415
 
A glimpse of business intelligence
A glimpse of business intelligenceA glimpse of business intelligence
A glimpse of business intelligence
 
Cameron Hawthorne - E Bus Sales analysis with Olap and Disco
Cameron Hawthorne - E Bus Sales analysis with Olap and DiscoCameron Hawthorne - E Bus Sales analysis with Olap and Disco
Cameron Hawthorne - E Bus Sales analysis with Olap and Disco
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Sap – An Applications Perspective Vikram Singh Sankhala
Sap – An Applications Perspective Vikram Singh SankhalaSap – An Applications Perspective Vikram Singh Sankhala
Sap – An Applications Perspective Vikram Singh Sankhala
 
Sales Wave Apps - Partner Training
Sales Wave Apps - Partner TrainingSales Wave Apps - Partner Training
Sales Wave Apps - Partner Training
 
New Features in SPI Buyer Direct
New Features in SPI Buyer DirectNew Features in SPI Buyer Direct
New Features in SPI Buyer Direct
 
20140409 sap innovation forum staples bi road to hana
20140409 sap innovation forum staples bi road to hana20140409 sap innovation forum staples bi road to hana
20140409 sap innovation forum staples bi road to hana
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
 
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...
Presentation with Jim Prescott of Sonoco Products on S&OP at CSCMP in San Ant...
 
Anaplan and Valizant webinar: Improving your S&OP investment
Anaplan and Valizant webinar: Improving your S&OP investmentAnaplan and Valizant webinar: Improving your S&OP investment
Anaplan and Valizant webinar: Improving your S&OP investment
 

Mehr von Sulman Ahmed

Entrepreneurial Strategy Generating and Exploiting new entries
Entrepreneurial Strategy Generating and Exploiting new entriesEntrepreneurial Strategy Generating and Exploiting new entries
Entrepreneurial Strategy Generating and Exploiting new entriesSulman Ahmed
 
Entrepreneurial Intentions and corporate entrepreneurship
Entrepreneurial Intentions and corporate entrepreneurshipEntrepreneurial Intentions and corporate entrepreneurship
Entrepreneurial Intentions and corporate entrepreneurshipSulman Ahmed
 
Entrepreneurship main concepts and description
Entrepreneurship main concepts and descriptionEntrepreneurship main concepts and description
Entrepreneurship main concepts and descriptionSulman Ahmed
 
Run time Verification using formal methods
Run time Verification using formal methodsRun time Verification using formal methods
Run time Verification using formal methodsSulman Ahmed
 
Use of Formal Methods at Amazon Web Services
Use of Formal Methods at Amazon Web ServicesUse of Formal Methods at Amazon Web Services
Use of Formal Methods at Amazon Web ServicesSulman Ahmed
 
student learning App
student learning Appstudent learning App
student learning AppSulman Ahmed
 
Software Engineering Economics Life Cycle.
Software Engineering Economics  Life Cycle.Software Engineering Economics  Life Cycle.
Software Engineering Economics Life Cycle.Sulman Ahmed
 
Data mining Techniques
Data mining TechniquesData mining Techniques
Data mining TechniquesSulman Ahmed
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data miningSulman Ahmed
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data miningSulman Ahmed
 
Classification in data mining
Classification in data mining Classification in data mining
Classification in data mining Sulman Ahmed
 
Data mining Basics and complete description
Data mining Basics and complete description Data mining Basics and complete description
Data mining Basics and complete description Sulman Ahmed
 
Data mining Basics and complete description onword
Data mining Basics and complete description onwordData mining Basics and complete description onword
Data mining Basics and complete description onwordSulman Ahmed
 
Dwh lecture-07-denormalization
Dwh lecture-07-denormalizationDwh lecture-07-denormalization
Dwh lecture-07-denormalizationSulman Ahmed
 
Dwh lecture-06-normalization
Dwh lecture-06-normalizationDwh lecture-06-normalization
Dwh lecture-06-normalizationSulman Ahmed
 
Dwh lecture 13-process dm
Dwh  lecture 13-process dmDwh  lecture 13-process dm
Dwh lecture 13-process dmSulman Ahmed
 
Dwh lecture 08-denormalization tech
Dwh   lecture 08-denormalization techDwh   lecture 08-denormalization tech
Dwh lecture 08-denormalization techSulman Ahmed
 
Dwh lecture 07-denormalization
Dwh   lecture 07-denormalizationDwh   lecture 07-denormalization
Dwh lecture 07-denormalizationSulman Ahmed
 

Mehr von Sulman Ahmed (20)

Entrepreneurial Strategy Generating and Exploiting new entries
Entrepreneurial Strategy Generating and Exploiting new entriesEntrepreneurial Strategy Generating and Exploiting new entries
Entrepreneurial Strategy Generating and Exploiting new entries
 
Entrepreneurial Intentions and corporate entrepreneurship
Entrepreneurial Intentions and corporate entrepreneurshipEntrepreneurial Intentions and corporate entrepreneurship
Entrepreneurial Intentions and corporate entrepreneurship
 
Entrepreneurship main concepts and description
Entrepreneurship main concepts and descriptionEntrepreneurship main concepts and description
Entrepreneurship main concepts and description
 
Run time Verification using formal methods
Run time Verification using formal methodsRun time Verification using formal methods
Run time Verification using formal methods
 
Use of Formal Methods at Amazon Web Services
Use of Formal Methods at Amazon Web ServicesUse of Formal Methods at Amazon Web Services
Use of Formal Methods at Amazon Web Services
 
student learning App
student learning Appstudent learning App
student learning App
 
Software Engineering Economics Life Cycle.
Software Engineering Economics  Life Cycle.Software Engineering Economics  Life Cycle.
Software Engineering Economics Life Cycle.
 
Data mining Techniques
Data mining TechniquesData mining Techniques
Data mining Techniques
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
 
Classification in data mining
Classification in data mining Classification in data mining
Classification in data mining
 
Data mining Basics and complete description
Data mining Basics and complete description Data mining Basics and complete description
Data mining Basics and complete description
 
Data mining Basics and complete description onword
Data mining Basics and complete description onwordData mining Basics and complete description onword
Data mining Basics and complete description onword
 
Dwh lecture-07-denormalization
Dwh lecture-07-denormalizationDwh lecture-07-denormalization
Dwh lecture-07-denormalization
 
Dwh lecture-06-normalization
Dwh lecture-06-normalizationDwh lecture-06-normalization
Dwh lecture-06-normalization
 
Dwh lecture 12-dm
Dwh lecture 12-dmDwh lecture 12-dm
Dwh lecture 12-dm
 
Dwh lecture 13-process dm
Dwh  lecture 13-process dmDwh  lecture 13-process dm
Dwh lecture 13-process dm
 
Dwh lecture 08-denormalization tech
Dwh   lecture 08-denormalization techDwh   lecture 08-denormalization tech
Dwh lecture 08-denormalization tech
 
Dwh lecture 07-denormalization
Dwh   lecture 07-denormalizationDwh   lecture 07-denormalization
Dwh lecture 07-denormalization
 
Wbs
WbsWbs
Wbs
 

Kürzlich hochgeladen

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxnuruddin69
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stageAbc194748
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 

Kürzlich hochgeladen (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 

Dwh lecture 11-molap

  • 2. OLAP Implementations 1. MOLAP: OLAP implemented with a multi-dimensional data structure. 2. ROLAP: OLAP implemented with a relational database. 3. HOLAP: OLAP implemented as a hybrid of MOLAP and ROLAP. 2
  • 3. 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. 3
  • 4. 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. 4
  • 5. Aggregations in MOLAP 5  Sales volume as a function of (i) product, (ii) time,Sales volume as a function of (i) product, (ii) time, and (iii) geographyand (iii) geography  A cube structure created to handle this.A cube structure created to handle this. Dimensions: Product, Geography, Time Industry Category Product Hierarchical summarization pathsHierarchical summarization paths Product G eog Time w1 w2 w3 w4 w5 w6 Milk Bread Eggs Butter Jam Juice N E W S 12 13 45 8 23 10 Province Division District City Zone Year Quarter Month Week Day
  • 6. 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 6
  • 7. Querying the cube - 5,000 10,000 15,000 20,000 25,000 30,000 35,000 40,000 2001 2002 Juices Soda Drinks Ahsan Abdullah 7 Drill-down - 2,000 4,000 6,000 8,000 10,000 12,000 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 OJ RK 8UP PK MJ BU AJ 2001 2002 - 2,000 4,000 6,000 8,000 10,000 12,000 14,000 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Juices Soda Drinks 2001 2002 Drill-Down Roll-Up
  • 8. Querying the cube: Pivoting - 5,000 10,000 15,000 20,000 25,000 30,000 35,000 40,000 2001 2002 Juices Soda Drinks - 2,000 4,000 6,000 8,000 10,000 12,000 14,000 16,000 18,000 Orange juice Mango juice Apple juice Rola- Kola 8-UP Bubbly- UP Pola- Kola 2001 2002 8
  • 9. MOLAP evaluation 9 Advantages of MOLAP:  Instant response (pre-calculated aggregates).  Impossible to ask question without an answer.  Value added functions (ranking, % change).
  • 10. MOLAP evaluation 10 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.
  • 11. MOLAP Implementation issues Maintenance issue: Every data item received must be aggregated into every cube (assuming “to-date” summaries are maintained). Lot of work. Storage issue: As dimensions get less detailed (e.g., year vs. day) cubes get much smaller, but storage consequences for building hundreds of cubes can be significant. Lot of space. 11

Hinweis der Redaktion

  1. Molap: it is a multidimensional implementation of olap Rolap: has underlined table structure and sql also runs. Holap: best of both world. The enviornment switch b/w molap and rolap for performance. Dolap: used for sales for automation, cubes are cut into small pieces then used for dss.
  2. Olap is logically a cube traditionaly olap is implemented with multidimensional data struct. Second feature is dimensions. When we discuss cube, it is made by dimensions like time, product, geography. Time to access O(1) v. v. fast. Means independent of data size, or input size time to access remain same. In molap we store the aggregates (all) in multidimensional array. And access time of array is O(1).
  3. Molap implementation has no sql. When u store aggregates in a multi dim array, that array is in 1st normal form 2nd or 3rd normal form? It may be in 1st because you merge the tables and generate the cubes. If there is no sql then how you probe the cube. There are 3rd party tools or graphical enviornments to probe the cubes. Apis are also available to probe the cube.
  4. Cubes have following operations. Slice and dice: you want to explore a particular part of the cube. Pivot: make x axis and y axis interchange. Will be clear soon.
  5. Now to query the cube. First chart has histogram representing juices and soda. We can drill down because it appears that soda drinks have constant and almost equal sale. But now you drill down and find q3 has highest juice sale as compare to soda. Means until drill we cannot know this fact. So when there is lot of data with lot of dimensions decision maker cannot make the decision on its own. In last chart it appears that few items have continuly low sale an alarming situation.
  6. Previously time was on x axis, and product on y axis, but now interchanged. In 2002 8-up has highest sale, so this pivoting reveals hidden facts. When we probe a cube it shows the results using gui enviornment.
  7. - O(1) access time, because aggregate is already in the main memory. The second adv is that all possible questions are answered in the form of aggregates. Third adv is that molap supports value addition, ie. Sort results, find median, convert into pi chart etc.
  8. Works well when dimensions are few, but otherwise needs to maintin is a tough task. Cube is sparse because all possible combinations cannot have values i.e. heater sale in sibi which is almost impossible due to hot weather.
  9. We say data is historical but we cannot go v back in history, and if events are rapidly changing we cannot see the past. So required that the fresh data should come and when it comes we need to put it in all possible aggregates which is a lot of work. So updation is difficult thing for molap. Second issue is about space. Here a misconception may occur that if you aggregates on large grain then less storage space is required but it is not right. But even instead of day to year, the defination of year can vary even within the company so a lot of cubes will become and more storage will be required. When we do the aggregation number of cubes increase and big cube grows and it may not even come in the main memory. So will you purchase new main memory but until when you purchase main memory. So a sol is to partition the cube.