Data cube storage types

Contents[Hide]

1. Overview

After you have designed your data cube, you can optionally choose a Storage Type and potentially increase data retrieval performance or reduce the load on your database servers or other data sources. There are three storage options available from the toolbar when editing a data cube:

  • None(Default) Connects live to the data sources directly when the data cube is used in a visualization, with the choice of short term caching or real-time updates.
  • Warehouse – Stores or caches the transformed data in the Dundas BI Warehouse database when the cube is built.
  • In-memory – Stores data in server memory for even greater performance potential for data analysis queries.

When using warehouse or in-memory storage, you can choose to build the storage either on-demand or schedule it to run periodically, for example overnight if you have a line of business database that is not permitted to be queried during the day. You can also choose incremental updates, which retrieves only data that was added to the database since the last build, and can potentially build large data cubes faster.

Note
A data cube that contains public parameters or user-specific filters cannot be built as a warehouse or in-memory cube. A security hierarchy can be used instead of filtering by custom attributes.

2. Data cube preparation

Building in-memory storage can require a lot of server memory, so we strongly recommend that you remove or hide unnecessary elements (columns, hierarchies, or measures), which you do not need from your data cube's Process Result transform. This can also benefit warehouse storage by leaving out unnecessary data. In-memory storage is also affected by the number of aggregators enabled on each measure.

For example, edit a measure from your data cube and check the list of Supported Aggregators. By default, only Sum, Count, and Average are selected in order to conserve memory usage, but you can adjust this setting as needed.

Supported aggregators for a measure
Supported aggregators for a measure

Double-click the Process Result transform to open its configuration dialog, which lets you uncheck output columns that you don't need. This will completely remove the column from the data cube output.

As an alternative, you can also hide a measure or hierarchy from the output by clicking the grey minus icon on the very right. The measure or hierarchy will be listed under a Hidden section but you can easily unhide it by clicking its plus icon. A column hidden this way will be excluded from in-memory storage processing (which helps with performance) but the column will still be available for subsequent linking in hierarchy keys (for example, if you need to use the data cube later to define a hierarchy by using the column as part of a composite key).

Hiding a measure or hierarchy
Hiding a measure or hierarchy

Elements that provide details about or describe items identified by another hierarchy can be selected as Attribute Hierarchies for that hierarchy. This conserves the amount of in-memory storage required, while providing benefits when selecting data such as disabling unwanted totals and expand/collapse functionality by default.

Selecting attribute hierarchies
Selecting attribute hierarchies

For example, with a ProductID that uniquely identifies each product, you could select various elements such as Color, Class, and Size as attribute hierarchies for ProductID that describe each product.

Attributes can also be selected when creating a hierarchy from the main menu. For details and examples of using attributes in a metric set, see Automatic joins and hierarchies.

3. Using data cube storage

When editing a data cube that is checked out to you, click Storage Type in the toolbar and select the type you want.

Storage types
Storage types

The Warehouse storage type lets you store or cache data in the Dundas BI Warehouse database. The In-Memory storage type stores data in server memory for even greater performance gain potential for data analysis queries, and also stores its data in the Dundas BI Warehouse database so that it can be reloaded back into memory in the event of a server restart.

The following sections describe how to set up warehouse and in-memory storage.

3.1. Check in your data cube

Once you've chosen a storage type, you must Check In your data cube before you can build its storage or set up scheduling.

After checking in, you will be asked if you want to build the data cube. Click Ok to begin building the warehouse or in-memory storage, or click Cancel if you want to build it later as shown in the next section.

Next, you will be asked if you want to set up a schedule. Click Ok to open the Schedule Rule dialog, otherwise click Cancel and you can still choose to set up a schedule later.

3.2. Build the data cube

After checking in the data cube, you can also build its warehouse or in-memory storage on-demand any of these three ways:

  • When the data cube is open for editing but still checked in, click Warehouse in the toolbar and then Build Warehouse, or click In-Memory and then Build In-Memory.
  • Locate the data cube in the main menu by clicking Open and then Data Cube, or find it in the Explore dockable window found on various screens in Dundas BI within the Data Cubes folder. Next, right-click the data cube and choose Build Warehouse or Build In-Memory.
  • As an administrator, you can go to the Jobs screen to run, cancel, or see the status of a data cube build.

Building warehouse storage from the data cube toolbar
Building warehouse storage from the data cube toolbar

You'll see a message indicating the build has started. The time required to build the cube depends on the amount of data and other factors described elsewhere in this article.

3.3. Schedule data cube storage

To open the Schedule Rule dialog for scheduling, open the data cube for editing while it is still checked in.

Click Warehouse in the toolbar and then Schedule Warehouse, or click In-Memory and then Schedule In-Memory.

In the dialog, choose from a wide variety of scheduling options to have the data cube periodically re-build its storage automatically, then click Submit at the bottom.

Scheduling data cube builds
Scheduling data cube builds

Administrators can also go to the Jobs screen to edit existing schedules for data cube builds.

3.4. Disable memory management

When using in-memory storage, after the storage exceeds a certain number of records, it begins compressing the records to maintain a stable use of RAM. When the records are used, they are decompressed and then recompressed again after some time.

You can increase the performance of the in-memory data cube by preventing it from recompressing records.

Important
This setting allows for unlimited use of RAM. Using it with an insufficient amount of RAM can result in memory paging, which would likely lower the performance rather than improve it.

Click to configure the data cube settings from the toolbar when editing an in-memory data cube that is checked out to you.

Configure data cube settings
Configure data cube settings

In the Configure Data Cube dialog, tick the checkbox under Disable Memory Management. Then click Submit.

Disable memory management
Disable memory management

The new setting will take effect after the next time the data cube is built.

Note
As an alternative, you can change the number of records after which compression starts by going to Admin > Setup > Config and editing the Record Block Size configuration.

3.5. Limitations

The following limitations exist for in-memory warehouse storage:

  • In-memory storage type does not support binary data types.

4. Incremental data update

Incrementally building data cubes will only retrieve data that was added to the database since the last build as kept track by one or more incremental element fields in your data, such as a date or sequential ID. This has the potential to substantially decrease the time needed to build the data cube, however it will not update or remove existing data.

It is important to avoid or be cautious when using incremental updates on a data cube where changes to existing data are possible. Deleted entries will still be present, entries that have been updated with a smaller incremental element value will be unchanged, and entries updated with a larger incremental element value can appear as a new, separate entry after the data cube has been updated.

Note
Incremental data updates are not available for data structures that do not allow parameters, such as Excel.

You can enable incremental data updates when using either the warehouse or in-memory storage type, and then build the data cubes manually or via a schedule, as described above.

Click to configure the data cube settings from the toolbar when the data cube is checked out to you.

Configure data cube settings
Configure data cube settings

Select Perform Incremental Build, and then select the Incremental Elements to use to identify new records. Each time the data cube builds, it will only load new records where these elements contain values greater than those from the previous build.

Enable incremental builds
Enable incremental builds

5. Notes

5.1. What storage type is this data cube using?

If your data cube is checked in, you can see what type of storage it is using from any file explorer, including the Explore window. This saves you from having to edit the data cube just to see its storage type.

When a data cube uses a storage type, it appears with a different icon. The data cube's tooltip also indicates the type of storage it uses.

Data cube icon and tooltip indicates warehouse storage
Data cube icon and tooltip indicates warehouse storage

Data cube icon and tooltip indicates in-memory storage
Data cube icon and tooltip indicates in-memory storage

5.2. Performance of building in-memory storage

The total time required to build in-memory storage for a particular data cube, and the RAM memory required, can vary greatly depending on a range of factors. Estimating build times is therefore not as simple as saying building X records takes Y minutes, etc.

For example, memory consumption generally depends on:

  • How memory is allocated by the .NET framework
  • Number of hierarchies and measures used in your data cube process (especially with distinct count)
  • How sparse is your fact table (end result of your data cube process)

Ideally, if the in-memory storage result fits entirely in RAM, then the total build time will generally be divided as follows on a typical 8 core CPU box:

  • 50% of time spent retrieving/loading data from your data sources
  • 50% of time spent building the in-memory data structures

With a higher number of processing cores, the time to build the in-memory data structures can be reduced due to parallelization.

Here are some general guidelines for optimizing in-memory builds:

  • De-select columns you don't need in your data cube as early in the process as possible.
  • Minimize the number of hierarchies, measures, and aggregators in your data cube.
  • Include columns as attributes of a hierarchy where appropriate instead of separate hierarchies.
  • Minimize the complexity of your data cube process (e.g., type and number of transforms used).
  • Use the Filter transform to restrict data to required ranges.

5.3. Metric set data retrieval is set to raw

When the Data Retrieval Format on a metric set is set to Raw and <Row Number> is placed on Rows, the raw data may be retrieved directly from the original database, bypassing the data cube's storage.

For more information on raw data mode, see the article Metric set analysis tools.

6. See also

Dundas Data Visualization, Inc.
500-250 Ferrand Drive
Toronto, ON, Canada
M3C 3G8

North America: 1.800.463.1492
International: 1.416.467.5100

Dundas Support Hours:
Phone: 9am-6pm, ET, Mon-Fri
Email: 7am-6pm, ET, Mon-Fri