To use Cognos product documentation, you must enable JavaScript in your browser.

Optimizing SAP BW Performance

You can improve performance of SAP BW models and queries by adjusting settings in Framework Manager and in the Cognos 8 studios.

Dimension Settings

For each dimension, check the settings for the Balanced and Ragged properties.

By default, Cognos 8 uses settings that will not fail for the hierarchy type.

For information about the types of hierarchies, see Dimensions and SAP BW Hierarchies.

Balanced Hierarchies

If a presentation hierarchy is balanced, then the Balanced property of its associated dimension should be set to true. By default, it is assigned a value of false for all presentation hierarchies. A hierarchy is balanced if all leaf characteristic values occur at the lowest level of the hierarchy. By setting this property to true as appropriate, the Cognos 8 server is able to generate more efficient MDX.

You can define whether a dimension represents a balanced hierarchy by modifying the Balanced property of a dimension. The value that you set depends on the type of object that the dimension represents, and whether the hierarchy is balanced.

When all paths are of the same depth, set the Balanced property to true, otherwise set it to false.

The default value for a dimension representing a presentation hierarchy is false.

For a dimension that represents a characteristic without a presentation hierarchy, this property is read-only and is assigned a value of true.

Dimension represents

Balanced property value

characteristic

true

presentation hierarchy that is balanced

true

presentation hierarchy that is unbalanced

false

presentation hierarchy whose structure is unknown

false

If you assign a value of true to the Balanced property of an unbalanced hierarchy, queries that involve this dimension may return incorrect data.

If you assign a value of false to the Balanced property of a balanced hierarchy, performance may be slower.

Ragged Hierarchies

You can define whether a dimension represents a ragged hierarchy by modifying the Ragged property of a dimension. The value that you set depends on the type of object that the dimension represents, and whether you know if the hierarchy is ragged.

By setting the Ragged property to false as appropriate, the Cognos 8 server is able to generate more efficient MDX.

If a presentation hierarchy is not ragged, set the Ragged property of its associated dimension to false. By default, set all presentation hierarchies to true.

The default value for a dimension representing a presentation hierarchy is true.

A dimension that represents a characteristic without a presentation hierarchy is read-only.

Dimension represents

Ragged property value

characteristic

false

presentation hierarchy that is not ragged

false

presentation hierarchy that is ragged

true

presentation hierarchy whose structure is unknown

true

If you assign a value of true to the Ragged property of an unragged hierarchy, queries that involve this dimension may return incorrect data.

If you assign a value of false to the Ragged property of a ragged hierarchy, performance may be slower.

Unbalanced Hierarchies

An unbalanced hierarchy can also be ragged. In a ragged-unbalanced hierarchy, there are gaps in the levels and the levels descend to different depths.

Limitations with Ragged and Unbalanced Hierarchies and Aggregated Values

Ragged and unbalanced hierarchies can create gaps within individual paths of a hierarchy, as well as nodes at intermediate levels with no descendants at lower levels. If a report includes query items from a single dimension that are from consecutive or adjacent levels in a hierarchy, the fact values associated with the lower levels should always aggregate to the values associated with the higher levels of the dimension in the report.

However, if the query items are not from consecutive or adjacent levels, and the underlying SAP BW hierarchy is ragged or unbalanced, it is possible that the values of the higher levels may not reflect the aggregation of the fact values from the lower levels. The aggregated fact values associated with the higher levels reflect the aggregated values in the data source. This is typical behavior for OLAP data sources, but may be counterintuitive to those accustomed to reporting against relational data sources.

Data Source Settings

You can use SAP BW variables to reduce and filter the data underlying an SAP BW Query.

If improperly configured, variable prompts that use either a picklist or hierarchical picklist can perform poorly. Use the following properties to control the performance of these types of variable prompts:

For information about other variables, see SAP BW Variables.