Professional Documents
Culture Documents
Online Analytical Processing (OLAP)
Online Analytical Processing (OLAP)
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
Multi-dimensional views of
data (2)
Example of 3 dimensional views of data
11
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
Data Cube
12
Data Cube Example
Mar 05
Feb 05
Jan 05
Product A $ $ $ $
Product B $ $ $ $
Product C $ $ $ $
13
OLAP Operations
Slice
• Select data on a single dimension of a data cube
Dice
• Extracts a sub-cube from the original cube
Roll-up (aggregation)
• Combing of cells for one dimension
• Generalization, e.g. Jan, Feb, Mar = Quarter 1
• May be used with “concept hierarchy”
Drill-down
• Reverse of “Roll-up” operation
• Examine data at level of greater detail, e.g. Northern Region =
Chiang Mai, Chiang Rai, …
Rotation (pivot)
• Allow user to view data from a new perspective
• Axis rotation
14
OLAP Operations (2)
Slice
Mar 05
Feb 05
Jan 05 Mar 05
Feb 05
Product A $ Jan 05
Product B $ Product A $ $ $ $
Store A Store B Store C Store D
Product C $
Store A
Jan 05
Dice
Product A $
Store A
15
OLAP Operations (3)
Mar 05
Quarter 1, 05 Feb 05
Jan 05
Product A $ $ $ $
Product A $ $ $ $
Product B $ $ $ $ $
Product B $ $ $
Product C $ $ $ $ Product C $ $ $ $
Roll-up Drill-down
16
OLAP Operations (4)
Product A
Product B
Product C
$
$
$
Store A $ $ $
$
$
$
Store B $ $ $
$
$
Store C $ $ $
Store D
$
$
$ $ $
Rotation
17
Concept Hierarchy
Quarter Province
Month City
18
Types of OLAP tools
19
Multi-dimensional OLAP
(MOLAP)
Use Multi-dimensional Database Management
System (MDDBMS) to organize and analyze
data
Use some efficient storage techniques to
minimize disk space requirement
Provides good performance when data is used as
designed
Provide a tight coupling between data structure
and presentation layer
• Access to data structure may be provided via
application programming interfaces (APIs)
20
MOLAP Architecture
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
21
MOLAP Issues
22
Relational OLAP (ROLAP)
23
ROLAP Architecture
24
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
ROLAP Issues
25
Hybrid OLAP (HOLAP)
26
HOLAP Architecture
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
27
Desktop OLAP (DOLAP)
28
DOLAP Architecture
29
Source: Connelly & Begg (2001), Database Systems: A Practical Approach to Design, Implementation, and Management (3rd Edition), Addison Wesley
DOLAP Issues
30
OLAP Benchmark
31
OLAP Benchmark (2)
32
OLAP Extensions to SQL
33
References