3-Data Warehouse Modeling - Data Cube and OLAP-18!12!2024
3-Data Warehouse Modeling - Data Cube and OLAP-18!12!2024
and OLAP
OLAP server
• The chief component of data warehouse process is the OLAP
server.
– Fact table contains measures (such as dollars_sold) and keys to each of the
related dimension tables
5
6
7
A 3-D view of sales data for AllElectronics, according to the dimensions time, item, and location. The measure
displayed is dollars sold (in thousands).
8
3-D data cube
9
4-D data cube
10
Cube: A Lattice of Cuboids (views)
In data warehousing all
literature, 0-D(apex) cuboid
-an n-D base cube is
called a base time item location supplier
cuboid.. 1-D cuboids
-The top most 0-D
time,item time,location item,location location,supplier
cuboid, which holds
the highest-level of time,supplier 2-D cuboids
item,supplier
summarization, is
called the apex time,item,location
time,location,supplier
all
0-D(apex) cuboid
product date country
1-D cuboids
3-D(base) cuboid
product, date, country
12
A Sample Data Cube
Total annual sales
Date of TV in U.S.A.
1Qtr 2Qtr 3Qtr 4Qtr sum
ct
TV
du
o PC U.S.A
Pr
VCR
sum
Country
Canada
Mexico
sum
13
A Concept Hierarchy: Dimension (location)
all all
14
Multidimensional Data
• Sales volume as a function of product,
month, and region Dimensions: Product, Location, Time
Hierarchical summarization paths
o n
gi
Re
Office Day
Month
15
• Cubes in a data warehouse are stored in three
different modes.
Types of OLAP
MOLAP • Multidimensional Online Analytical processing
mode
ROLAP • Relational Online Analytical Processing mode
HOLAP • Hybrid Online Analytical Processing mode.
ROLAP & MLAP
• The underlying data in this model is stored in relational databases.
• Since the data is stored in relational databases this model gives the appearance of traditional
OLAP’s slicing and dicing functionality.
• Advantages :
it can handle a large amount of data and can leverage all the functionalities of the relational
database.
• Advantages:
it provides excellent query performance and the cubes are built for fast data retrieval.
MOLAP ROLAP
• Cube browsing is fastest when using MOLAP • Processing time is slower in ROLAP