![]() | ![]() |
Home |
|
|
WarehouseArchitect - User's Guide |
|
| Part 3 WarehouseArchitect Model |
|
| Chapter 16: Aggregation and Partitioning |
|
| Partitioning a fact |
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.
The Wizard for Fact Table Partitioning dialog box appears.
The List of Fact Tables appears. It lists only the facts in the Multidimensional Hierarchy that are attached to fact tables.
The name and code of the selected fact appear in the Name and Code boxes.
The dialog box displays the multidimensional hierarchy for the selected fact.
By default, all checkboxes are cleared.
The dialog box lists the selected attributes, their code, and the fact or dimension to which they are attached.
An arrow appears at the beginning of the line.
The List of Values dialog box appears.
A partitioned table is created for each value of the attribute.
You must type at least one value for each attribute.
| Displaying a partitioned table If you do not select the Show Partitioned Tables checkbox, you can display the tables by selecting Dictionary-->List of Tables and selecting the corresponding Display checkboxes.
|
Partitioned tables appear in the WAM.
| Columns in fact table not displayed in partitioned fact tables Columns in the fact table other than primary or foreign key columns, only appear in the partitioned fact tables when they are attached to metrics or attributes. To attach a column to a metric or an attribute, use the object property sheet in the Multidimensional Hierarchy.
|
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.
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.
To access data on sales of a particular category of products for these years, you also select the Category checkbox.
To specify the years 1995 and 1996, you enter the values 1995 and 1996 in the List of Values for the Year attribute.
To specify data for deluxe and standard categories only, you enter the corresponding values in the List of Values for the Category attribute.
|
|