Docsity

The Data Cube-Data Warehouse-Lecture Handout, Exercises of Data Warehousing

Toggle sidebar
bg1
The dimensional model is simple and symmetric. The data is easier to
understand and navigate. Every dimension is equivalent; all dimensions
have symmetrically equal entry points into the fact table. The logical model
has no built-in bias regarding expected query patterns.
The simplicity also has performance benefits. Fewer joins are necessary for
query processing. A database engine can make strong assumptions about
first constraining the heavily indexed dimension tables, and then attacking
the fact table all at once with the Cartesian product of the dimension table
keys satisfying the user’s constraints.
With dimensional models, we can add completely new dimensions to the
schema as long as a single value of that dimension is defined for each
existing fact row. Likewise, we can add new, unanticipated facts to the fact
table, assuming that the level of detail is consistent with the existing fact
table. We can also supplement preexisting dimension tables with rows
down to a lower level granularity from a certain point in time forward.
In all of the cases above, existing data access applications will continue to
run without yielding different results. Data would not have to be reloaded.
Another way of thinking about the simplistic nature of star schema is to see
how the dimensions and facts contribute to the report. The dimension table
attributes supply the report labeling, whereas the fact tables supply the
report’s numeric values.
docsity.com
pf2

Partial preview of the text

Download The Data Cube-Data Warehouse-Lecture Handout and more Exercises Data Warehousing in PDF only on Docsity!

The dimensional model is simple and symmetric. The data is easier to understand and navigate. Every dimension is equivalent; all dimensions have symmetrically equal entry points into the fact table. The logical model has no built-in bias regarding expected query patterns.

The simplicity also has performance benefits. Fewer joins are necessary for query processing. A database engine can make strong assumptions about first constraining the heavily indexed dimension tables, and then attacking the fact table all at once with the Cartesian product of the dimension table keys satisfying the user’s constraints.

With dimensional models, we can add completely new dimensions to the schema as long as a single value of that dimension is defined for each existing fact row. Likewise, we can add new, unanticipated facts to the fact table, assuming that the level of detail is consistent with the existing fact table. We can also supplement preexisting dimension tables with rows down to a lower level granularity from a certain point in time forward.

In all of the cases above, existing data access applications will continue to run without yielding different results. Data would not have to be reloaded.

Another way of thinking about the simplistic nature of star schema is to see how the dimensions and facts contribute to the report. The dimension table attributes supply the report labeling, whereas the fact tables supply the report’s numeric values.

docsity.com

The Data Cube

Another approach to look at the multi-dimensional data model is through a data cube. It allows data to be modeled and viewed in multiple dimensions. It is developed on the basis of dimensions and facts as well.

The data cube can be defined as the intersection of dimensions that provide some facts of interest to the business. The cube is suitable for OLAP processing (slicing and dicing along a business dimension), as compared to the star schema which is suitable for query processing.

Data cubes can be translated into star schema and vice versa. However, high level aggregation of data is efficiently stored as cubes; having been precalculated; alternative roll-ups across changing dimensions are more efficiently and flexibly performed by star schema, based on available details.

The classic cube is customer by product by time (or place), and it is a three-dimensional (3-D) cube.

docsity.com