Result set caching

When you run an MDX query and a result set is returned, the result set is cached. For Cubing Services users, this improves response time for queries against both regular and virtual cubes. For Cognos® users, response time improves if the results of an MDX query can be returned from the cache rather than running the query again on the server.

For Cubing Services, result set caching is enabled by default. The result sets from most queries are cached, except if they contain a session-scoped name set or a session-scoped calculated member. Because those items are session-scoped, no other session can use their result sets, and no result sets are cached.

For each cube, you control the query results cache using a Java Virtual Machine (JVM) parameter. You set the JVM parameter in the Create Cube Server Wizard in the Administration Console:
enableResultSetCache
This parameter disables or enables the result set cache for all cubes and virtual cubes. The cache is enabled by default. The settings for this parameter are true and false.
The following example disables the results set cache:
-DenableResultSetCache=”false”

How the result set cache is cleared

All cubes, including virtual cubes, have their own result set cube cache. These result set caches are stored on disk in the same location as the data cache in the resultsetcache directory. If you change the location, new cache files and subdirectories will be created in the new directory after the cube server is restarted, but the cache files and subdirectories in the old directory will not be deleted.

The result set cache is cleared under the following conditions:

The files and subdirectories on disk under the alternative directory are only deleted when the cache for the cube is switched over during a refresh.

Performance improvements

You will see improved performance in these situations:



Feedback | Information roadmap