The cubes are merged based on the dimension names. Dimensions with the same name in both cubes will be merged. Dimensions from one cube that do not have a corresponding dimension with the same name in the other cube are added to the virtual cube.
The two cubes that are combined can belong to different cube models, which means that the internal structures can be completely different. The cubes that make up a virtual cube must share at least one dimension. The virtual cubes and the cubes that make up the virtual cubes must reside in the same database. The cubes that form the virtual cube must also be from the same cube server.
Two cubes are considered to share a dimension if a dimension with a particular name exists in both cubes. For example, if two cubes both have a dimension that is named [Time], in the context of virtual cubes, the two cubes share the [Time] dimension.
You decide to implement virtual cubes. The virtual cube you will create contains two cubes, and the cube with data for the current month is refreshed every night. The other cube is refreshed every month, instead of every night. As a result, the amount of maintenance time that is required is drastically reduced. Therefore, the managers in other geographies who need to access the data warehouse are impacted by only a few hours of maintenance a month, instead of by a few hours of maintenance every day.
To improve performance, you decide to partition the GOSALESDW.SLS_SALES_FACT fact table into two different views, GOSALESDW.fact_recent and GOSALESDW.fact_historic. The new GOSALESDW.fact_recent view will select data from the current month, which creates a view of a smaller amount of data. The GOSALESDW.fact_historic view will select the rows with sales data from the remaining months of data. The GOSALESDW.fact_recent view will be used to create the SalesCubeRecent cube, and the GOSALESDW.fact_historic view will be used to create the SalesCubeHistoric cube.
The sample cubes are already created for you as a sample metadata file. This metadata file is included as a part of the samples directory when you install InfoSphere™ Warehouse 9.7.1. You will be using the virtual_cube_model.xml file that is included as a part of the installation image. If you are using InfoSphere Warehouse 9.7, you can download the sample cube model.
The SalesCubeRecent cube is the smaller cube and queries a smaller amount of data. This cube is used to record the daily sales information for the current month, creating a smaller set of data. The maintenance period that is necessary for this smaller cube is also reduced.
The larger SalesCubeHistoric cube will contain a larger amount of data. This cube is refreshed monthly to include the data from the SalesCubeRecent cube. Because the SalesCubeHistoric cube is refreshed every month, the maintenance time that is required is significantly reduced. Query results for the SalesCubeHistoric cube are also pre-cached so that results are returned quickly to sales managers.
After you create the virtual cube, the performance of the cache refresh and of queries improves because of several factors: