SlideShare a Scribd company logo
1 of 16
Ahsan AbdullahAhsan Abdullah
11
Data WarehousingData Warehousing
Lecture-11Lecture-11
Multidimensional OLAP (MOLAP)Multidimensional OLAP (MOLAP)
Virtual University of PakistanVirtual University of Pakistan
Ahsan Abdullah
Assoc. Prof. & Head
Center for Agro-Informatics Research
www.nu.edu.pk/cairindex.asp
National University of Computers & Emerging Sciences, Islamabad
Email: ahsan@cluxing.com
Ahsan Abdullah
2
Multidimensional OLAP (MOLAP)Multidimensional OLAP (MOLAP)
Ahsan Abdullah
3
OLAP ImplementationsOLAP Implementations
1.1. MOLAP:MOLAP: OLAP implemented with a multi-OLAP implemented with a multi-
dimensional data structure.dimensional data structure.
2.2. ROLAP:ROLAP: OLAP implemented with a relationalOLAP implemented with a relational
database.database.
3.3. HOLAP:HOLAP: OLAP implemented as a hybrid ofOLAP implemented as a hybrid of
MOLAP and ROLAP.MOLAP and ROLAP.
4.4. DOLAP:DOLAP: OLAP implemented for desktop decisionOLAP implemented for desktop decision
support environments.support environments.
Ahsan Abdullah
4
MOLAP ImplementationsMOLAP Implementations
OLAP has historically been implemented using aOLAP has historically been implemented using a
multi_dimensional data structure or “cube”.multi_dimensional data structure or “cube”.
 Dimensions are key business factors for analysis:Dimensions are key business factors for analysis:
 GeographiesGeographies (city, district, division, province,...)(city, district, division, province,...)
 ProductsProducts (item, product category, product department,...)(item, product category, product department,...)
 DatesDates (day, week, month, quarter, year,...)(day, week, month, quarter, year,...)
 Very high performance achieved by O(1) timeVery high performance achieved by O(1) time
lookup into “cube” data structure to retrievelookup into “cube” data structure to retrieve
pre_aggregated results.pre_aggregated results.
Ahsan Abdullah
5
MOLAP ImplementationsMOLAP Implementations
 No standard query language for querying MOLAPNo standard query language for querying MOLAP
- No SQL !No SQL !
 Vendors provide proprietary languages allowingVendors provide proprietary languages allowing
business users to create queries that involve pivots,business users to create queries that involve pivots,
drilling down, or rolling up.drilling down, or rolling up.
- E.g. MDX of MicrosoftE.g. MDX of Microsoft
- Languages generally involve extensive visual (click andLanguages generally involve extensive visual (click and
drag) support.drag) support.
- Application Programming Interface (API)’s also providedApplication Programming Interface (API)’s also provided
for probing the cubes.for probing the cubes.
Ahsan Abdullah
6
Aggregations in MOLAPAggregations in MOLAP
 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
Ahsan Abdullah
7
Cube operationsCube operations
 Drill down: get more detailsDrill down: get more details
 e.g., given summarized sales as above, find breakupe.g., given summarized sales as above, find breakup
of sales by city within each region, or within Sindhof sales by city within each region, or within Sindh
 Rollup: summarize dataRollup: summarize data
 e.g., given sales data, summarize sales for last yeare.g., given sales data, summarize sales for last year
by product category and regionby product category and region
 Slice and dice: select and projectSlice and dice: select and project
 e.g.: Sales of soft-drinks in Karachi during laste.g.: Sales of soft-drinks in Karachi during last
quarterquarter
 Pivot: change the view of dataPivot: change the view of data
Ahsan Abdullah
8
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
Querying the cubeQuerying the cube
-
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
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Juices Soda Drinks
2001 2002
Drill-Down
Roll-Up
Ahsan Abdullah
9
Querying the cube: PivotingQuerying 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
Ahsan Abdullah
10
MOLAP evaluationMOLAP evaluation
Advantages of MOLAP:

Instant response (pre-calculated aggregates).

Impossible to ask question without an answer.

Value added functions (ranking, % change).
Ahsan Abdullah
11
MOLAP evaluationMOLAP 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.
Ahsan Abdullah
12
MOLAP Implementation issuesMOLAP Implementation issues
Maintenance issue:Maintenance issue: Every data itemEvery data item
received must be aggregated intoreceived must be aggregated into everyevery cubecube
(assuming “to-date” summaries are(assuming “to-date” summaries are
maintained).maintained). Lot of work.Lot of work.
Storage issue:Storage issue: As dimensions get lessAs dimensions get less
detailed (e.g., year vs. day) cubes get muchdetailed (e.g., year vs. day) cubes get much
smaller, but storage consequences forsmaller, but storage consequences for
building hundreds of cubes can be significant.building hundreds of cubes can be significant.
Lot of space.Lot of space.
Ahsan Abdullah
13
Partitioned CubesPartitioned Cubes
 To overcome the space limitation of MOLAP, the cube isTo overcome the space limitation of MOLAP, the cube is
partitioned.partitioned.
 The divide&conquer cube partitioning approach helpsThe divide&conquer cube partitioning approach helps
alleviate the scalability limitations of MOLAPalleviate the scalability limitations of MOLAP
implementation.implementation.
 One logical cube of data can be spread across multipleOne logical cube of data can be spread across multiple
physical cubes on separate (or same) servers.physical cubes on separate (or same) servers.
 Ideal cube partitioning is completely invisible to endIdeal cube partitioning is completely invisible to end
users.users.
 PerformancePerformance degradation does occursdegradation does occurs in case of a joinin case of a join
across partitioned cubes.across partitioned cubes.
Ahsan Abdullah
14
Partitioned Cubes: How it looks Like?Partitioned Cubes: How it looks Like?
Time
Geography
Men’s clothing
Children clothing
Bed linen
Sales data cube partitioned at a major cottonSales data cube partitioned at a major cotton
products sale outletproducts sale outlet
Product
Ahsan Abdullah
15
Virtual CubesVirtual Cubes
Used to query two dissimilar cubes by creating aUsed to query two dissimilar cubes by creating a
third “virtual” cube by a join between two cubes.third “virtual” cube by a join between two cubes.
 Logically similar to a relational view i.e. linking twoLogically similar to a relational view i.e. linking two
(or more) cubes along common dimension(s).(or more) cubes along common dimension(s).
 Biggest advantage is saving in space by eliminatingBiggest advantage is saving in space by eliminating
storage of redundant information.storage of redundant information.
Example:Example: Joining the store cube and the list priceJoining the store cube and the list price
cube along the product dimension, to calculate thecube along the product dimension, to calculate the
sale price without redundant storage of the salesale price without redundant storage of the sale
price data.price data.
Ahsan Abdullah
16
SummarySummary

More Related Content

Similar to Lecture 11

Eldercare spark meetup-2017-12
Eldercare spark meetup-2017-12Eldercare spark meetup-2017-12
Eldercare spark meetup-2017-12Scott Gerard
 
Efficient Information Retrieval using Multidimensional OLAP Cube
Efficient Information Retrieval using Multidimensional OLAP CubeEfficient Information Retrieval using Multidimensional OLAP Cube
Efficient Information Retrieval using Multidimensional OLAP CubeIRJET Journal
 
Online analytical processing
Online analytical processingOnline analytical processing
Online analytical processingnurmeen1
 
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]vasuballa
 
Analytics forward 2018-03
Analytics forward 2018-03Analytics forward 2018-03
Analytics forward 2018-03Scott Gerard
 
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...Data Con LA
 
Sql Server 2005 Business Inteligence
Sql Server 2005 Business InteligenceSql Server 2005 Business Inteligence
Sql Server 2005 Business Inteligenceabercius24
 
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/RailsActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/RailsPaul Gallagher
 
Apache kylin (china hadoop summit 2015 shanghai)
Apache kylin (china hadoop summit 2015 shanghai)Apache kylin (china hadoop summit 2015 shanghai)
Apache kylin (china hadoop summit 2015 shanghai)qhzhou
 
DEMO: Digital transformations in real life
DEMO: Digital transformations in real lifeDEMO: Digital transformations in real life
DEMO: Digital transformations in real lifeKarina Matos
 
OLAP in Data Warehouse
OLAP in Data WarehouseOLAP in Data Warehouse
OLAP in Data WarehouseSOMASUNDARAM T
 
DA_04_SQL_Modern_DW.pptx
DA_04_SQL_Modern_DW.pptxDA_04_SQL_Modern_DW.pptx
DA_04_SQL_Modern_DW.pptxAlok Mohapatra
 
86921864 olap-case-study-vj
86921864 olap-case-study-vj86921864 olap-case-study-vj
86921864 olap-case-study-vjhomeworkping4
 
Information Design Tool -Tutorial 6
Information Design Tool -Tutorial 6Information Design Tool -Tutorial 6
Information Design Tool -Tutorial 6Obily W
 
Snowflake Cloning.pdf
Snowflake Cloning.pdfSnowflake Cloning.pdf
Snowflake Cloning.pdfVishnuGone
 
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)Senturus
 
Apache Kylin Streaming
Apache Kylin Streaming Apache Kylin Streaming
Apache Kylin Streaming hongbin ma
 

Similar to Lecture 11 (20)

Eldercare spark meetup-2017-12
Eldercare spark meetup-2017-12Eldercare spark meetup-2017-12
Eldercare spark meetup-2017-12
 
Efficient Information Retrieval using Multidimensional OLAP Cube
Efficient Information Retrieval using Multidimensional OLAP CubeEfficient Information Retrieval using Multidimensional OLAP Cube
Efficient Information Retrieval using Multidimensional OLAP Cube
 
Online analytical processing
Online analytical processingOnline analytical processing
Online analytical processing
 
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
 
Analytics forward 2018-03
Analytics forward 2018-03Analytics forward 2018-03
Analytics forward 2018-03
 
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...
Big Data Day LA 2016/ Hadoop/ Spark/ Kafka track - Real-time Aggregations, Ap...
 
Sql Server 2005 Business Inteligence
Sql Server 2005 Business InteligenceSql Server 2005 Business Inteligence
Sql Server 2005 Business Inteligence
 
Using sap bw in universe designer
Using sap bw in universe designerUsing sap bw in universe designer
Using sap bw in universe designer
 
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/RailsActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
 
Apache kylin (china hadoop summit 2015 shanghai)
Apache kylin (china hadoop summit 2015 shanghai)Apache kylin (china hadoop summit 2015 shanghai)
Apache kylin (china hadoop summit 2015 shanghai)
 
DEMO: Digital transformations in real life
DEMO: Digital transformations in real lifeDEMO: Digital transformations in real life
DEMO: Digital transformations in real life
 
OLAP in Data Warehouse
OLAP in Data WarehouseOLAP in Data Warehouse
OLAP in Data Warehouse
 
DA_04_SQL_Modern_DW.pptx
DA_04_SQL_Modern_DW.pptxDA_04_SQL_Modern_DW.pptx
DA_04_SQL_Modern_DW.pptx
 
86921864 olap-case-study-vj
86921864 olap-case-study-vj86921864 olap-case-study-vj
86921864 olap-case-study-vj
 
Information Design Tool -Tutorial 6
Information Design Tool -Tutorial 6Information Design Tool -Tutorial 6
Information Design Tool -Tutorial 6
 
Snowflake Cloning.pdf
Snowflake Cloning.pdfSnowflake Cloning.pdf
Snowflake Cloning.pdf
 
Cs437 lecture 09
Cs437 lecture 09Cs437 lecture 09
Cs437 lecture 09
 
Olapin oracle
Olapin oracleOlapin oracle
Olapin oracle
 
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)
Best Practices with OLAP Modeling with Cognos Transformer (Cognos 8)
 
Apache Kylin Streaming
Apache Kylin Streaming Apache Kylin Streaming
Apache Kylin Streaming
 

More from Shani729

Python tutorialfeb152012
Python tutorialfeb152012Python tutorialfeb152012
Python tutorialfeb152012Shani729
 
Python tutorial
Python tutorialPython tutorial
Python tutorialShani729
 
Interaction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionInteraction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionShani729
 
Fm lecturer 13(final)
Fm lecturer 13(final)Fm lecturer 13(final)
Fm lecturer 13(final)Shani729
 
Lecture slides week14-15
Lecture slides week14-15Lecture slides week14-15
Lecture slides week14-15Shani729
 
Frequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodFrequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodShani729
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15Shani729
 
Dwh lecture slides-week10
Dwh lecture slides-week10Dwh lecture slides-week10
Dwh lecture slides-week10Shani729
 
Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Shani729
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Shani729
 
Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Shani729
 
Dwh lecture slides-week2
Dwh lecture slides-week2Dwh lecture slides-week2
Dwh lecture slides-week2Shani729
 
Dwh lecture slides-week1
Dwh lecture slides-week1Dwh lecture slides-week1
Dwh lecture slides-week1Shani729
 
Dwh lecture slides-week 13
Dwh lecture slides-week 13Dwh lecture slides-week 13
Dwh lecture slides-week 13Shani729
 
Data warehousing and mining furc
Data warehousing and mining furcData warehousing and mining furc
Data warehousing and mining furcShani729
 
Lecture 40
Lecture 40Lecture 40
Lecture 40Shani729
 
Lecture 39
Lecture 39Lecture 39
Lecture 39Shani729
 
Lecture 38
Lecture 38Lecture 38
Lecture 38Shani729
 
Lecture 37
Lecture 37Lecture 37
Lecture 37Shani729
 
Lecture 35
Lecture 35Lecture 35
Lecture 35Shani729
 

More from Shani729 (20)

Python tutorialfeb152012
Python tutorialfeb152012Python tutorialfeb152012
Python tutorialfeb152012
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
Interaction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionInteraction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interaction
 
Fm lecturer 13(final)
Fm lecturer 13(final)Fm lecturer 13(final)
Fm lecturer 13(final)
 
Lecture slides week14-15
Lecture slides week14-15Lecture slides week14-15
Lecture slides week14-15
 
Frequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodFrequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth method
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15
 
Dwh lecture slides-week10
Dwh lecture slides-week10Dwh lecture slides-week10
Dwh lecture slides-week10
 
Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6
 
Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Dwh lecture slides-week3&4
Dwh lecture slides-week3&4
 
Dwh lecture slides-week2
Dwh lecture slides-week2Dwh lecture slides-week2
Dwh lecture slides-week2
 
Dwh lecture slides-week1
Dwh lecture slides-week1Dwh lecture slides-week1
Dwh lecture slides-week1
 
Dwh lecture slides-week 13
Dwh lecture slides-week 13Dwh lecture slides-week 13
Dwh lecture slides-week 13
 
Data warehousing and mining furc
Data warehousing and mining furcData warehousing and mining furc
Data warehousing and mining furc
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
 
Lecture 37
Lecture 37Lecture 37
Lecture 37
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
 

Recently uploaded

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 

Recently uploaded (20)

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 

Lecture 11

  • 1. Ahsan AbdullahAhsan Abdullah 11 Data WarehousingData Warehousing Lecture-11Lecture-11 Multidimensional OLAP (MOLAP)Multidimensional OLAP (MOLAP) Virtual University of PakistanVirtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics Research www.nu.edu.pk/cairindex.asp National University of Computers & Emerging Sciences, Islamabad Email: ahsan@cluxing.com
  • 2. Ahsan Abdullah 2 Multidimensional OLAP (MOLAP)Multidimensional OLAP (MOLAP)
  • 3. Ahsan Abdullah 3 OLAP ImplementationsOLAP Implementations 1.1. MOLAP:MOLAP: OLAP implemented with a multi-OLAP implemented with a multi- dimensional data structure.dimensional data structure. 2.2. ROLAP:ROLAP: OLAP implemented with a relationalOLAP implemented with a relational database.database. 3.3. HOLAP:HOLAP: OLAP implemented as a hybrid ofOLAP implemented as a hybrid of MOLAP and ROLAP.MOLAP and ROLAP. 4.4. DOLAP:DOLAP: OLAP implemented for desktop decisionOLAP implemented for desktop decision support environments.support environments.
  • 4. Ahsan Abdullah 4 MOLAP ImplementationsMOLAP Implementations OLAP has historically been implemented using aOLAP has historically been implemented using a multi_dimensional data structure or “cube”.multi_dimensional data structure or “cube”.  Dimensions are key business factors for analysis:Dimensions are key business factors for analysis:  GeographiesGeographies (city, district, division, province,...)(city, district, division, province,...)  ProductsProducts (item, product category, product department,...)(item, product category, product department,...)  DatesDates (day, week, month, quarter, year,...)(day, week, month, quarter, year,...)  Very high performance achieved by O(1) timeVery high performance achieved by O(1) time lookup into “cube” data structure to retrievelookup into “cube” data structure to retrieve pre_aggregated results.pre_aggregated results.
  • 5. Ahsan Abdullah 5 MOLAP ImplementationsMOLAP Implementations  No standard query language for querying MOLAPNo standard query language for querying MOLAP - No SQL !No SQL !  Vendors provide proprietary languages allowingVendors provide proprietary languages allowing business users to create queries that involve pivots,business users to create queries that involve pivots, drilling down, or rolling up.drilling down, or rolling up. - E.g. MDX of MicrosoftE.g. MDX of Microsoft - Languages generally involve extensive visual (click andLanguages generally involve extensive visual (click and drag) support.drag) support. - Application Programming Interface (API)’s also providedApplication Programming Interface (API)’s also provided for probing the cubes.for probing the cubes.
  • 6. Ahsan Abdullah 6 Aggregations in MOLAPAggregations in MOLAP  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
  • 7. Ahsan Abdullah 7 Cube operationsCube operations  Drill down: get more detailsDrill down: get more details  e.g., given summarized sales as above, find breakupe.g., given summarized sales as above, find breakup of sales by city within each region, or within Sindhof sales by city within each region, or within Sindh  Rollup: summarize dataRollup: summarize data  e.g., given sales data, summarize sales for last yeare.g., given sales data, summarize sales for last year by product category and regionby product category and region  Slice and dice: select and projectSlice and dice: select and project  e.g.: Sales of soft-drinks in Karachi during laste.g.: Sales of soft-drinks in Karachi during last quarterquarter  Pivot: change the view of dataPivot: change the view of data
  • 8. Ahsan Abdullah 8 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 Querying the cubeQuerying the cube - 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 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Juices Soda Drinks 2001 2002 Drill-Down Roll-Up
  • 9. Ahsan Abdullah 9 Querying the cube: PivotingQuerying 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
  • 10. Ahsan Abdullah 10 MOLAP evaluationMOLAP evaluation Advantages of MOLAP:  Instant response (pre-calculated aggregates).  Impossible to ask question without an answer.  Value added functions (ranking, % change).
  • 11. Ahsan Abdullah 11 MOLAP evaluationMOLAP 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.
  • 12. Ahsan Abdullah 12 MOLAP Implementation issuesMOLAP Implementation issues Maintenance issue:Maintenance issue: Every data itemEvery data item received must be aggregated intoreceived must be aggregated into everyevery cubecube (assuming “to-date” summaries are(assuming “to-date” summaries are maintained).maintained). Lot of work.Lot of work. Storage issue:Storage issue: As dimensions get lessAs dimensions get less detailed (e.g., year vs. day) cubes get muchdetailed (e.g., year vs. day) cubes get much smaller, but storage consequences forsmaller, but storage consequences for building hundreds of cubes can be significant.building hundreds of cubes can be significant. Lot of space.Lot of space.
  • 13. Ahsan Abdullah 13 Partitioned CubesPartitioned Cubes  To overcome the space limitation of MOLAP, the cube isTo overcome the space limitation of MOLAP, the cube is partitioned.partitioned.  The divide&conquer cube partitioning approach helpsThe divide&conquer cube partitioning approach helps alleviate the scalability limitations of MOLAPalleviate the scalability limitations of MOLAP implementation.implementation.  One logical cube of data can be spread across multipleOne logical cube of data can be spread across multiple physical cubes on separate (or same) servers.physical cubes on separate (or same) servers.  Ideal cube partitioning is completely invisible to endIdeal cube partitioning is completely invisible to end users.users.  PerformancePerformance degradation does occursdegradation does occurs in case of a joinin case of a join across partitioned cubes.across partitioned cubes.
  • 14. Ahsan Abdullah 14 Partitioned Cubes: How it looks Like?Partitioned Cubes: How it looks Like? Time Geography Men’s clothing Children clothing Bed linen Sales data cube partitioned at a major cottonSales data cube partitioned at a major cotton products sale outletproducts sale outlet Product
  • 15. Ahsan Abdullah 15 Virtual CubesVirtual Cubes Used to query two dissimilar cubes by creating aUsed to query two dissimilar cubes by creating a third “virtual” cube by a join between two cubes.third “virtual” cube by a join between two cubes.  Logically similar to a relational view i.e. linking twoLogically similar to a relational view i.e. linking two (or more) cubes along common dimension(s).(or more) cubes along common dimension(s).  Biggest advantage is saving in space by eliminatingBiggest advantage is saving in space by eliminating storage of redundant information.storage of redundant information. Example:Example: Joining the store cube and the list priceJoining the store cube and the list price cube along the product dimension, to calculate thecube along the product dimension, to calculate the sale price without redundant storage of the salesale price without redundant storage of the sale price data.price data.

Editor's Notes

  1. <number>
  2. <number>
  3. <number>
  4. <number>
  5. <number>
  6. <number>
  7. <number>
  8. <number>
  9. <number>
  10. <number>