Chapter Contents |
Previous |
Next |
SAS/MDDB Server Administrator's Guide |
While it is possible to create an MDDB that consists of the NWAY cube only, this approach would require that the NWAY cube fulfill all requests made by OLAP clients. While this approach saves on storage space, you can improve query performance if you create subcubes based on anticipated client requests. In order to create an MDDB that requires the least storage space while providing users with the best response time, consider the following issues:
Creating useful and efficient MDDBs is best accomplished as an iterative process that fits into the overall data warehouse and business intelligence strategies of your organization. You can analyze the usage patterns to determine whether your MDDB is defined correctly and make adjustments if necessary. For example, if a defined subcube is rarely or never accessed, it can be safely removed from the MDDB creation. Alternately, if there are subcubes that are not defined but are frequently requested, they can be added to the MDDB creation.
Using a Spiral Diagram to Order the Classification Variables |
Imagine that you have a base table that contains retail sales information. The classification variables in this table can be grouped into four dimensions, or groups of variables with similar characteristics:
Axis Diagram
The placement of the axes in relation to each other can be significant. You might want to try several arrangements to find one that works best for you. The following are possible arrangements:
Now you can draw a spiral on the diagram that will indicate a general ordering scheme for the variables. Starting on the outside with the classification variable with the lowest cardinality that is also the one most likely to be of interest to users, draw a line from this variable to an adjacent variable on the diagram. Continue in this manner, spiraling in toward the center. As in this example, you might have to deviate slightly from this pattern when multiple variables near the center have high cardinality. Here, the spiral is drawn so that FAMILY is after SUPPLIER instead of DAY.
Spiral Diagram
You can then produce an ordered list of classification variables based on the diagram. For this example, the order would be
YEAR | |
SECTOR | |
REGION | |
GRP_SUPP | |
MONTH | |
GRP | |
SHOP | |
SUPPLIER | |
FAMILY | |
DAY | |
ARTICLE |
From this list, you can develop an intelligent choice of crossings. Start with the whole list and successively drop the last item in a "stair-step" fashion to form a new crossing, as follows:
YEAR SECTOR REGION GRP_SUPP MONTH GRP SHOP SUPPLIER FAMILY DAY ARTICLE YEAR SECTOR REGION GRP_SUPP MONTH GRP SHOP SUPPLIER FAMILY DAY YEAR SECTOR REGION GRP_SUPP MONTH GRP SHOP SUPPLIER FAMILY YEAR SECTOR REGION GRP_SUPP MONTH GRP SHOP SUPPLIER YEAR SECTOR REGION GRP_SUPP MONTH GRP SHOP YEAR SECTOR REGION GRP_SUPP MONTH GRP YEAR SECTOR REGION GRP_SUPP MONTH YEAR SECTOR REGION GRP_SUPP YEAR SECTOR REGION YEAR SECTOR YEAR
From this list of crossings, you can define the NWAY cube and as many subcubes as you want.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.