Tuesday, July 8, 2014

Configure OBIEE To Generate A Single SQL Query Instead Of Multiple Queries.

When OBIEE translates logical sql into physical SQL, the algorithm is designed to determine the optimal commands to be executed in the data source. However, there are times when OBIEE will generate multiple sql commands, when a single SQL statement would improve performance.  Subrequest Caching controls whether or not multiple queries can be generated. By default, Subrequest Caching is set to allow multiple queries.

There are 2 ways to configure Subrequest Caching to execute only a single command:

@ Single Analysis Level:
- Edit the Analysis.
- Click on the Advanced tab.
- Add the following clause, in the prefix field:

      set variable DISABLE_SUBREQUEST_CACHING=1;
  and then click on the 'Apply SQL' button.

@System Level default:
- Edit the NQSConfig.ini file (FMW_HOME\instances\instanceX\config\OracleBIServerComponent\coreapplication_obisX).
- In the 'CACHE' section, set:
     DISABLE_SUBREQUEST_CACHING = YES
- Bounce the system.

-Asifkhan P.

No comments:

Post a Comment