IBM Support

How to improve performance by reusing cached data when running a report

Troubleshooting


Problem

This document explains how to improve performance by reusing cached data when executing a report

Resolving The Problem

In Report Studio, Query Studio, and Cognos Viewer the results for previous requests to the database are cached for the duration of a session when session caching is enabled. To increase performance, for subsequent queries, Cognos uses cached results for some actions rather than accessing the database. This applies when the same results can be used or when the new results are a subset of the cached results.

However, because performance may be affected, you may want to leave session caching disabled in the following situations:

  • Users expect up-to-date results directly from the database for every query, for example new records that were added to the database in the interim.
  • You want to limit the number of times the cache is accessed during a session.


Steps:
The session cache feature is enable by default in Cognos. The default cache setting can be disabled or modified to increase or lower the number of cache requests per session as outlined in these steps:
  1. Rename the cognos_location/configuration/CQEConfig.xml.sample file to CQEConfig.xml.
  2. Open the cognos_location/configuration/CQEConfig.xml in an editor.
  3. Ensure that your editor supports saving files in UTF-8 format.
  4. Find the queryReuse parameter and change the value to desired value, 5 is the default setting. To disable caching, set the value to 0
  5. Save the CQEConfig.xml file.
  6. Using Cognos Configuration, stop and then restart Cognos.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2.2;10.2.1;10.2;10.1.1;10.1;8.4.1;8.4;8.3","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

1015191

Document Information

Modified date:
15 June 2018

UID

swg21339071