Escolar Documentos
Profissional Documentos
Cultura Documentos
1
Online Analytic Processing
OLAP
2
OLAP
3
OLTP vs. OLAP
§ On-Line Transaction Processing (OLTP):
– technology used to perform updates on operational or
transactional systems (e.g., point of sale systems)
OLAP
Server OLAP
Internal
Sources
Reports
Meta
data
External Client
Sources Tools
5
OLAP AND DATA WAREHOUSE
7
EXAMPLE OLAP APPLICATIONS
• Market Analysis
• Find which items are frequently sold over the summer but
not over winter?
NY
Items MA
CA Raw data cubes
(raw level without
bread 10 aggregation)
Orange
juice
47
"#'&#*
()
'
$%&#
! $
!"#
10
APPROACHES FOR OLAP
11
RELATIONAL OLAP: ROLAP
Product Region
Model Nation
Type Facts District
Color Product Dealer
Region
Large table Small tables
Time
Channel
Revenue
Channel Expenses Time
Units Week
Year
12
CUBE vs. STAR SCHEMA
Product Region
Dimension tables Model Nation
Facts
describe the dimensions Type District
Color Product Dealer
Region
Time
Location Channel
Revenue
NY
Channel Expenses Time
Items MA
CA Units Week
Year
bread 10
Orange
juice
47 Data inside the cube
are the fact records
Milk 2%fat 30
Milk 1%fat 12
Time
3/1 3/2 3/3 3/4
13
ROLAP: EXTENSIONS TO DBMS
• Schema design
14
SLICING & DICING
Dicing Location by state
• Dicing Location
• how each dimension in the cube NY
Items MA
is divided CA
Milk 2%fat 30
• Slicing Milk 1%fat 12
• Selecting slices of the data cube Time
3/1 3/2 3/3 3/4
to answer the OLAP query
• When answering a query
15
SLICING & DICING: EXAMPLE 1
Dicing Slicing
17
SLICING & DICING: EXAMPLE 3
18
DRILL-DOWN & ROLL-UP
19
ROLAP: DRILL-DOWN & ROLL-UP
Drill-down Roll-up
20
MOLAP
• Unlike ROLAP, in MOLAP data are stored in special structures called
“Data Cubes” (Array-bases storage)
Red
blob
Blue
blob
22
MOLAP & ROLAP
23
OLTP vs. OLAP
OLTP OLAP
Source: Datta, GT
24
OLAP: SUMMARY
• OLAP Models
• Relational (ROLAP): uses relational star schema
• Multidimensional (MOLAP): uses data cubes
25