SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
OLAP QUERIES
1
Online Analytic Processing
OLAP
2
OLAP
• OLAP: Online Analytic Processing
• OLAP queries are complex queries that
• Touch large amounts of data
• Discover patterns and trends in the data
• Typically expensive queries that take long time
• Also called decision-support queries
• In contrast to OLAP:
• OLTP: Online Transaction Processing
• OLTP queries are simple queries, e.g., over banking or airline
systems
• OLTP queries touch small amount of data for fast transactions
3
Select salary
From Emp
Where ID = 100;
OLTP vs. OLAP
§ On-Line Transaction Processing (OLTP):
– technology used to perform updates on operational or
transactional systems (e.g., point of sale systems)
§ On-Line Analytical Processing (OLAP):
– technology used to perform complex analysis of the data
in a data warehouse
4
OLAP is a category of software technology that enables
analysts, managers, and executives to gain insight into data
through fast, consistent, interactive access to a wide variety
of possible views of information that has been transformed
from raw data to reflect the dimensionality of the enterprise
as understood by the user.
[source: OLAP Council: www.olapcouncil.org]
OLAP AND DATA WAREHOUSE
5
Query and
Analysis
Component
Data
Integration
Component
Data
Warehouse
Operational
DBs
External
Sources
Internal
Sources
OLAP
Server
Meta
data
OLAP
Reports
Client
Tools
Data
Mining
OLAP AND DATA WAREHOUSE
•  Typically, OLAP queries are executed over a separate copy of
the working data
•  Over data warehouse
•  Data warehouse is periodically updated, e.g., overnight
•  OLAP queries tolerate such out-of-date gaps
•  Why run OLAP queries over data warehouse??
•  Warehouse collects and combines data from multiple sources
•  Warehouse may organize the data in certain formats to support OLAP
queries
•  OLAP queries are complex and touch large amounts of data
•  They may lock the database for long periods of time
•  Negatively affects all other OLTP transactions
6
OLAP ARCHITECTURE
7
EXAMPLE OLAP APPLICATIONS
•  Market Analysis
•  Find which items are frequently sold over the summer but
not over winter?
•  Credit Card Companies
•  Given a new applicant, does (s)he a credit-worthy?
•  Need to check other similar applicants (age, gender,
income, etc…) and observe how they perform, then do
prediction for new applicant
8
OLAP queries are also called “decision-
support” queries
MULTI-DIMENSIONAL VIEW
•  Data is typically viewed as points
in multi-dimensional space
9
10
47
30
12Milk 1%fat
3/1 3/2 3/3 3/4
Milk 2%fat
Orange
juice
bread
Time
Items
NY
MA
CA
Location
Raw data cubes
(raw level without
aggregation)
Typical OLAP applications
have many dimensions
ANOTHER EXAMPLE
10
!"# !$$%&#'()
"#'&#*
APPROACHES FOR OLAP
•  Relational OLAP (ROLAP)
•  Multi-dimensional OLAP (MOLAP)
•  Hybrid OLAP (HOLAP) = ROLAP + MOLAP
11
RELATIONAL OLAP: ROLAP
•  Data are stored in relational model (tables)
•  Special schema called Star Schema
•  One relation is the fact table, all the others are dimension tables
12
Facts
Week
Product
Product
Year
Region
Time
Channel
Revenue
Expenses
Units
Model
Type
Color
Channel
Region
Nation
District
Dealer
Time
Large table Small tables
CUBE vs. STAR SCHEMA
13
Facts
Week
Product
Product
Year
Region
Time
Channel
Revenue
Expenses
Units
Model
Type
Color
Channel
Region
Nation
District
Dealer
Time
Data inside the cube
are the fact records
Dimension tables
describe the dimensions
10
47
30
12Milk 1%fat
3/1 3/2 3/3 3/4
Milk 2%fat
Orange
juice
bread
Time
Items
NY
MA
CA
Location
ROLAP: EXTENSIONS TO DBMS
• Schema design
• Specialized scan, indexing and join techniques
• Handling of aggregate views (querying and materialization)
• Supporting query language extensions beyond SQL
• Complex query processing and optimization
• Data partitioning and parallelism
14
SLICING & DICING
•  Dicing
•  how each dimension in the cube
is divided
•  Different granularities
•  When building the data cube
•  Slicing
•  Selecting slices of the data cube
to answer the OLAP query
•  When answering a query
15
Dicing Time by day
10
47
30
12Milk 1%fat
3/1 3/2 3/3 3/4
Milk 2%fat
Orange
juice
bread
Time
Items
NY
MA
CA
Location
Dicing Location by state
SLICING & DICING: EXAMPLE 1
16
Dicing Slicing
Slicing operation in ROLAP is basically:
-- Selection conditions on some attributes (WHERE clause) +
-- Group by and aggregation
SLICING & DICING: EXAMPLE 2
17
SLICING & DICING: EXAMPLE 3
18
DRILL-DOWN & ROLL-UP
19
Region Sales variance
Africa 105%
Asia 57%
Europe 122%
North America 97%
Pacific 85%
South America 163%
Nation Sales variance
China 123%
Japan 52%
India 87%
Singapore 95%
Drill-down
(Group by Nation)
Roll-up
(group by Region)
ROLAP: DRILL-DOWN & ROLL-UP
20
Drill-down Roll-up
MOLAP
•  Unlike ROLAP, in MOLAP data are stored in special structures called
“Data Cubes” (Array-bases storage)
•  Data cubes pre-compute and aggregate the data
•  Possibly several data cubes with different granularities
•  Data cubes are aggregated materialized views over the data
•  As long as the data does not change frequently, the overhead of
data cubes is manageable
21
Sales 1996
Red
blob
Blue
blob
1997
Every day, every item, every city
Every week, every item
category, every city
MOLAP: CUBE OPERATOR
22
Raw-data (fact table)
Aggregation over the X axis
Aggregation over the Y axis
Aggregation over the Z axis
Aggregation over the X,Y
MOLAP & ROLAP
• Commercial offerings of both types are available
• In general, MOLAP is good for smaller warehouses and is
optimized for canned queries
• In general, ROLAP is more flexible and leverages relational
technology
• ROLAP May pay a performance penalty to realize flexibility
23
OLTP vs. OLAP
24
•  Clerk, IT Professional
•  Day to day operations
•  Application-oriented (E-R
based)
•  Current, Isolated
•  Detailed, Flat relational
•  Structured, Repetitive
•  Short, Simple transaction
•  Read/write
•  Index/hash on prim. Key
•  Tens
•  Thousands
•  100 MB-GB
•  Trans. throughput
•  Knowledge worker
•  Decision support
•  Subject-oriented (Star, snowflake)
•  Historical, Consolidated
•  Summarized, Multidimensional
•  Ad hoc
•  Complex query
•  Read Mostly
•  Lots of Scans
•  Millions
•  Hundreds
•  100GB-TB
•  Query throughput, response
User
Function
DB Design
Data
View
Usage
Unit of work
Access
Operations
# Records accessed
#Users
Db size
Metric
OLTP OLAP
Source: Datta, GT
OLAP: SUMMARY
• OLAP stands for Online Analytic Processing and used in
decision support systems
• Usually runs on data warehouse
• In contrast to OLTP, OLAP queries are complex, touch large
amounts of data, try to discover patterns or trends in the data
• OLAP Models
• Relational (ROLAP): uses relational star schema
• Multidimensional (MOLAP): uses data cubes
25

Weitere ähnliche Inhalte

Was ist angesagt?

OLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingOLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingWalid Elbadawy
 
Difference between molap, rolap and holap in ssas
Difference between molap, rolap and holap  in ssasDifference between molap, rolap and holap  in ssas
Difference between molap, rolap and holap in ssasUmar Ali
 
Olap, oltp and data mining
Olap, oltp and data miningOlap, oltp and data mining
Olap, oltp and data miningzafrii
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseIshara Amarasekera
 
Introduction to Datawarehousing
Introduction to  DatawarehousingIntroduction to  Datawarehousing
Introduction to Datawarehousingkarunakar81987
 
OLAP operations
OLAP operationsOLAP operations
OLAP operationskunj desai
 
The olap tutorial 2012
The olap tutorial 2012The olap tutorial 2012
The olap tutorial 2012Amin Jalali
 
An overview of data warehousing and OLAP technology
An overview of  data warehousing and OLAP technology An overview of  data warehousing and OLAP technology
An overview of data warehousing and OLAP technology Nikhatfatima16
 
Designing high performance datawarehouse
Designing high performance datawarehouseDesigning high performance datawarehouse
Designing high performance datawarehouseUday Kothari
 
86921864 olap-case-study-vj
86921864 olap-case-study-vj86921864 olap-case-study-vj
86921864 olap-case-study-vjhomeworkping4
 
Case study: Implementation of OLAP operations
Case study: Implementation of OLAP operationsCase study: Implementation of OLAP operations
Case study: Implementation of OLAP operationschirag patil
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSENeha Kapoor
 
Data warehouse - Nivetha Durganathan
Data warehouse - Nivetha DurganathanData warehouse - Nivetha Durganathan
Data warehouse - Nivetha DurganathanNivetha Durganathan
 

Was ist angesagt? (20)

Oltp vs olap
Oltp vs olapOltp vs olap
Oltp vs olap
 
OLAP OnLine Analytical Processing
OLAP OnLine Analytical ProcessingOLAP OnLine Analytical Processing
OLAP OnLine Analytical Processing
 
OLAP
OLAPOLAP
OLAP
 
Olap operations
Olap operationsOlap operations
Olap operations
 
OLAP
OLAPOLAP
OLAP
 
Datawarehouse and OLAP
Datawarehouse and OLAPDatawarehouse and OLAP
Datawarehouse and OLAP
 
Difference between molap, rolap and holap in ssas
Difference between molap, rolap and holap  in ssasDifference between molap, rolap and holap  in ssas
Difference between molap, rolap and holap in ssas
 
OLTP-Bench
OLTP-BenchOLTP-Bench
OLTP-Bench
 
Olap, oltp and data mining
Olap, oltp and data miningOlap, oltp and data mining
Olap, oltp and data mining
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
 
Introduction to Datawarehousing
Introduction to  DatawarehousingIntroduction to  Datawarehousing
Introduction to Datawarehousing
 
OLAP operations
OLAP operationsOLAP operations
OLAP operations
 
3 olap storage
3 olap storage3 olap storage
3 olap storage
 
The olap tutorial 2012
The olap tutorial 2012The olap tutorial 2012
The olap tutorial 2012
 
An overview of data warehousing and OLAP technology
An overview of  data warehousing and OLAP technology An overview of  data warehousing and OLAP technology
An overview of data warehousing and OLAP technology
 
Designing high performance datawarehouse
Designing high performance datawarehouseDesigning high performance datawarehouse
Designing high performance datawarehouse
 
86921864 olap-case-study-vj
86921864 olap-case-study-vj86921864 olap-case-study-vj
86921864 olap-case-study-vj
 
Case study: Implementation of OLAP operations
Case study: Implementation of OLAP operationsCase study: Implementation of OLAP operations
Case study: Implementation of OLAP operations
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSE
 
Data warehouse - Nivetha Durganathan
Data warehouse - Nivetha DurganathanData warehouse - Nivetha Durganathan
Data warehouse - Nivetha Durganathan
 

Ähnlich wie OLAP

OLAP IN DATA MINING
OLAP IN DATA MININGOLAP IN DATA MINING
OLAP IN DATA MININGwilifred
 
dataWarehouse.pptx
dataWarehouse.pptxdataWarehouse.pptx
dataWarehouse.pptxhqlm1
 
IS OLAP DEAD IN THE AGE OF BIG DATA?
IS OLAP DEAD IN THE AGE OF BIG DATA?IS OLAP DEAD IN THE AGE OF BIG DATA?
IS OLAP DEAD IN THE AGE OF BIG DATA?DataWorks Summit
 
Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Shani729
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Vibrant Technologies & Computers
 
Kylin and Druid Presentation
Kylin and Druid PresentationKylin and Druid Presentation
Kylin and Druid Presentationargonauts007
 
MariaDB AX: Solución analítica con ColumnStore
MariaDB AX: Solución analítica con ColumnStoreMariaDB AX: Solución analítica con ColumnStore
MariaDB AX: Solución analítica con ColumnStoreMariaDB plc
 
MariaDB AX: Analytics with MariaDB ColumnStore
MariaDB AX: Analytics with MariaDB ColumnStoreMariaDB AX: Analytics with MariaDB ColumnStore
MariaDB AX: Analytics with MariaDB ColumnStoreMariaDB plc
 
Kushal Data Warehousing PPT
Kushal Data Warehousing PPTKushal Data Warehousing PPT
Kushal Data Warehousing PPTKushal Singh
 
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...Fabio Fumarola
 
Data ware house architecture
Data ware house architectureData ware house architecture
Data ware house architectureDeepak Chaurasia
 
Data Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OneData Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OnePanchaleswar Nayak
 
1 introductory slides (1)
1 introductory slides (1)1 introductory slides (1)
1 introductory slides (1)tafosepsdfasg
 

Ähnlich wie OLAP (20)

OLAP IN DATA MINING
OLAP IN DATA MININGOLAP IN DATA MINING
OLAP IN DATA MINING
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
dataWarehouse.pptx
dataWarehouse.pptxdataWarehouse.pptx
dataWarehouse.pptx
 
Lecture1
Lecture1Lecture1
Lecture1
 
IS OLAP DEAD IN THE AGE OF BIG DATA?
IS OLAP DEAD IN THE AGE OF BIG DATA?IS OLAP DEAD IN THE AGE OF BIG DATA?
IS OLAP DEAD IN THE AGE OF BIG DATA?
 
Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13
 
3 OLAP.pptx
3 OLAP.pptx3 OLAP.pptx
3 OLAP.pptx
 
OLAP
OLAPOLAP
OLAP
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
 
Kylin and Druid Presentation
Kylin and Druid PresentationKylin and Druid Presentation
Kylin and Druid Presentation
 
MariaDB AX: Solución analítica con ColumnStore
MariaDB AX: Solución analítica con ColumnStoreMariaDB AX: Solución analítica con ColumnStore
MariaDB AX: Solución analítica con ColumnStore
 
MariaDB AX: Analytics with MariaDB ColumnStore
MariaDB AX: Analytics with MariaDB ColumnStoreMariaDB AX: Analytics with MariaDB ColumnStore
MariaDB AX: Analytics with MariaDB ColumnStore
 
Kushal Data Warehousing PPT
Kushal Data Warehousing PPTKushal Data Warehousing PPT
Kushal Data Warehousing PPT
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
Business analysis
Business analysisBusiness analysis
Business analysis
 
BI Introduction
BI IntroductionBI Introduction
BI Introduction
 
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
 
Data ware house architecture
Data ware house architectureData ware house architecture
Data ware house architecture
 
Data Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OneData Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_One
 
1 introductory slides (1)
1 introductory slides (1)1 introductory slides (1)
1 introductory slides (1)
 

Mehr von gokulprasath06

Exploratory data analysis
Exploratory data analysisExploratory data analysis
Exploratory data analysisgokulprasath06
 
K-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codeK-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codegokulprasath06
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processinggokulprasath06
 
Introduction to Data Mining - A Beginner's Guide
Introduction to Data Mining - A Beginner's GuideIntroduction to Data Mining - A Beginner's Guide
Introduction to Data Mining - A Beginner's Guidegokulprasath06
 
Reinforcement Learning Guide For Beginners
Reinforcement Learning Guide For BeginnersReinforcement Learning Guide For Beginners
Reinforcement Learning Guide For Beginnersgokulprasath06
 
Artificial Neural Networks (ANN)
Artificial Neural Networks (ANN)Artificial Neural Networks (ANN)
Artificial Neural Networks (ANN)gokulprasath06
 

Mehr von gokulprasath06 (7)

Exploratory data analysis
Exploratory data analysisExploratory data analysis
Exploratory data analysis
 
K-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codeK-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source code
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Introduction to Data Mining - A Beginner's Guide
Introduction to Data Mining - A Beginner's GuideIntroduction to Data Mining - A Beginner's Guide
Introduction to Data Mining - A Beginner's Guide
 
Reinforcement Learning Guide For Beginners
Reinforcement Learning Guide For BeginnersReinforcement Learning Guide For Beginners
Reinforcement Learning Guide For Beginners
 
Artificial Neural Networks (ANN)
Artificial Neural Networks (ANN)Artificial Neural Networks (ANN)
Artificial Neural Networks (ANN)
 
Data science guide
Data science guideData science guide
Data science guide
 

Kürzlich hochgeladen

Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 

Kürzlich hochgeladen (20)

Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 

OLAP

  • 3. OLAP • OLAP: Online Analytic Processing • OLAP queries are complex queries that • Touch large amounts of data • Discover patterns and trends in the data • Typically expensive queries that take long time • Also called decision-support queries • In contrast to OLAP: • OLTP: Online Transaction Processing • OLTP queries are simple queries, e.g., over banking or airline systems • OLTP queries touch small amount of data for fast transactions 3 Select salary From Emp Where ID = 100;
  • 4. OLTP vs. OLAP § On-Line Transaction Processing (OLTP): – technology used to perform updates on operational or transactional systems (e.g., point of sale systems) § On-Line Analytical Processing (OLAP): – technology used to perform complex analysis of the data in a data warehouse 4 OLAP is a category of software technology that enables analysts, managers, and executives to gain insight into data through fast, consistent, interactive access to a wide variety of possible views of information that has been transformed from raw data to reflect the dimensionality of the enterprise as understood by the user. [source: OLAP Council: www.olapcouncil.org]
  • 5. OLAP AND DATA WAREHOUSE 5 Query and Analysis Component Data Integration Component Data Warehouse Operational DBs External Sources Internal Sources OLAP Server Meta data OLAP Reports Client Tools Data Mining
  • 6. OLAP AND DATA WAREHOUSE •  Typically, OLAP queries are executed over a separate copy of the working data •  Over data warehouse •  Data warehouse is periodically updated, e.g., overnight •  OLAP queries tolerate such out-of-date gaps •  Why run OLAP queries over data warehouse?? •  Warehouse collects and combines data from multiple sources •  Warehouse may organize the data in certain formats to support OLAP queries •  OLAP queries are complex and touch large amounts of data •  They may lock the database for long periods of time •  Negatively affects all other OLTP transactions 6
  • 8. EXAMPLE OLAP APPLICATIONS •  Market Analysis •  Find which items are frequently sold over the summer but not over winter? •  Credit Card Companies •  Given a new applicant, does (s)he a credit-worthy? •  Need to check other similar applicants (age, gender, income, etc…) and observe how they perform, then do prediction for new applicant 8 OLAP queries are also called “decision- support” queries
  • 9. MULTI-DIMENSIONAL VIEW •  Data is typically viewed as points in multi-dimensional space 9 10 47 30 12Milk 1%fat 3/1 3/2 3/3 3/4 Milk 2%fat Orange juice bread Time Items NY MA CA Location Raw data cubes (raw level without aggregation) Typical OLAP applications have many dimensions
  • 11. APPROACHES FOR OLAP •  Relational OLAP (ROLAP) •  Multi-dimensional OLAP (MOLAP) •  Hybrid OLAP (HOLAP) = ROLAP + MOLAP 11
  • 12. RELATIONAL OLAP: ROLAP •  Data are stored in relational model (tables) •  Special schema called Star Schema •  One relation is the fact table, all the others are dimension tables 12 Facts Week Product Product Year Region Time Channel Revenue Expenses Units Model Type Color Channel Region Nation District Dealer Time Large table Small tables
  • 13. CUBE vs. STAR SCHEMA 13 Facts Week Product Product Year Region Time Channel Revenue Expenses Units Model Type Color Channel Region Nation District Dealer Time Data inside the cube are the fact records Dimension tables describe the dimensions 10 47 30 12Milk 1%fat 3/1 3/2 3/3 3/4 Milk 2%fat Orange juice bread Time Items NY MA CA Location
  • 14. ROLAP: EXTENSIONS TO DBMS • Schema design • Specialized scan, indexing and join techniques • Handling of aggregate views (querying and materialization) • Supporting query language extensions beyond SQL • Complex query processing and optimization • Data partitioning and parallelism 14
  • 15. SLICING & DICING •  Dicing •  how each dimension in the cube is divided •  Different granularities •  When building the data cube •  Slicing •  Selecting slices of the data cube to answer the OLAP query •  When answering a query 15 Dicing Time by day 10 47 30 12Milk 1%fat 3/1 3/2 3/3 3/4 Milk 2%fat Orange juice bread Time Items NY MA CA Location Dicing Location by state
  • 16. SLICING & DICING: EXAMPLE 1 16 Dicing Slicing Slicing operation in ROLAP is basically: -- Selection conditions on some attributes (WHERE clause) + -- Group by and aggregation
  • 17. SLICING & DICING: EXAMPLE 2 17
  • 18. SLICING & DICING: EXAMPLE 3 18
  • 19. DRILL-DOWN & ROLL-UP 19 Region Sales variance Africa 105% Asia 57% Europe 122% North America 97% Pacific 85% South America 163% Nation Sales variance China 123% Japan 52% India 87% Singapore 95% Drill-down (Group by Nation) Roll-up (group by Region)
  • 20. ROLAP: DRILL-DOWN & ROLL-UP 20 Drill-down Roll-up
  • 21. MOLAP •  Unlike ROLAP, in MOLAP data are stored in special structures called “Data Cubes” (Array-bases storage) •  Data cubes pre-compute and aggregate the data •  Possibly several data cubes with different granularities •  Data cubes are aggregated materialized views over the data •  As long as the data does not change frequently, the overhead of data cubes is manageable 21 Sales 1996 Red blob Blue blob 1997 Every day, every item, every city Every week, every item category, every city
  • 22. MOLAP: CUBE OPERATOR 22 Raw-data (fact table) Aggregation over the X axis Aggregation over the Y axis Aggregation over the Z axis Aggregation over the X,Y
  • 23. MOLAP & ROLAP • Commercial offerings of both types are available • In general, MOLAP is good for smaller warehouses and is optimized for canned queries • In general, ROLAP is more flexible and leverages relational technology • ROLAP May pay a performance penalty to realize flexibility 23
  • 24. OLTP vs. OLAP 24 •  Clerk, IT Professional •  Day to day operations •  Application-oriented (E-R based) •  Current, Isolated •  Detailed, Flat relational •  Structured, Repetitive •  Short, Simple transaction •  Read/write •  Index/hash on prim. Key •  Tens •  Thousands •  100 MB-GB •  Trans. throughput •  Knowledge worker •  Decision support •  Subject-oriented (Star, snowflake) •  Historical, Consolidated •  Summarized, Multidimensional •  Ad hoc •  Complex query •  Read Mostly •  Lots of Scans •  Millions •  Hundreds •  100GB-TB •  Query throughput, response User Function DB Design Data View Usage Unit of work Access Operations # Records accessed #Users Db size Metric OLTP OLAP Source: Datta, GT
  • 25. OLAP: SUMMARY • OLAP stands for Online Analytic Processing and used in decision support systems • Usually runs on data warehouse • In contrast to OLTP, OLAP queries are complex, touch large amounts of data, try to discover patterns or trends in the data • OLAP Models • Relational (ROLAP): uses relational star schema • Multidimensional (MOLAP): uses data cubes 25