Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Aggregating a fact [Table of Contents] Chapter 17:  Generation for OLAP Systems

WarehouseArchitect - User's Guide

[-] Part 3 WarehouseArchitect Model
[-] Chapter 16: Aggregation and Partitioning
[-] Partitioning a fact

Partitioning a fact

What is partitioning?Partitioning is a technique that optimizes data retrieval by dividing rows of a fact table according to one or more dimensions, for particular values of a dimension column.

When you do itWhen a large quantity of atomic level data is stored in a single table, you can improve query response time by separating, or partitioning, the data into multiple atomic level tables.

What happensWhen you partition data, you group data from different dimensions, for different values of each dimension. The pre-selected, or grouped data is stored in separate fact tables which can be easily accessed by the decision support system.

Creating a partitioned fact table

A partitioned fact table contains atomic level data for specific values of one or more dimension attributes. For example, you could partition a sales fact table to obtain three separate fact tables containing data on the sales of red telephones for the years 1995, 1996 and 1997.

The number of partitioned tables you create depends on the number of values you specify for each dimension attribute. For example, specifying the sales of blue telephones as well would result in the creation of six separate fact tables.

You create partitioned tables by selecting dimension attributes. You can only partition a fact table when the columns in the dimension tables are attached to attributes.

Example of partitioning

The result of partitioning is the same, regardless of the type of schema.

In this example, a central fact table (Sales) is linked to the dimension tables Customer, Product, Store and Time.

Graphical structureThe graphical structure of the WAM looks like this:

raster

Multidimensional structureThe multidimensional structure of the WAM looks like this:

raster

To partition data so that you can quickly access data on sales for the years 1995 and 1996, you select the attribute checkbox for Year.

raster

To access data on sales of a particular category of products for these years, you also select the Category checkbox.

raster

To specify the years 1995 and 1996, you enter the values 1995 and 1996 in the List of Values for the Year attribute.

raster

To specify data for deluxe and standard categories only, you enter the corresponding values in the List of Values for the Category attribute.

raster

ResultThe result of partitioning is four partitioned fact tables. Each one is linked to each of the dimension tables.

raster


Aggregating a fact [Table of Contents] Chapter 17:  Generation for OLAP Systems