How to improve query performance for WCM queries
Applies to
HCL Digital Experience 8.5 and higher
Introduction
This article describes tuning tips to improve the performance of Web Content Manager (WCM) queries in HCL Digital Experience (DX).
Instructions
Refer to the following options you can try to reduce your query time:
-
Run the
runstatsandreorgcommands on the database, preferably with DX server not running. For more information on these commands, refer to the HCL DX Performance Tuning Guides. -
Isolate the query in a JCR trace using the following command:
com.ibm.icm.da.portable.common.sql.*=allRun the query from a database client instead of DX server while the database administrator analyzes the query implementation on the database side. They can advise if creating or deleting indexes or modifying database config will help. Using this trace string will help isolate the query in the trace.
-
Modify the portal configuration in accordance with the DX and WCM tuning guides:
-
Reduce the size of the WCM database. Delete unneeded content or libraries. Run
clearVersionsto prune unneeded versions. -
There are multiple query hints to the Oracle optimizer that can dramatically reduce query times for some queries. These hints should be added to
icm.propertiesin DX 8.0.0.x and below. For DX 8.5.x and above, they should be added to the Resource Environment providerJCR ConfigService PortalContentusing the WebSphere Application Server Integrated Solutions Console (WAS admin console):-
In the WAS admin console, go to Resources > Resource Environment > Resource Environment Providers > JCR ConfigService PortalContent > Custom properties.
-
Click New....
-
Under Name, add the following:
jcr.query.predicate.hint.optimization.info -
Under Value, add the following:
[icm:label,,,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:projectState,,,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:projectUuid,,,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:categoriesUuids,,,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:reference,,,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:authoringTemplateUuid,*,*,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})][ibmcontentwcm:libraryUuid,*,*,opt_param(''_optimizer_squ_bottomup'',''FALSE'') leading({2}) use_nl({1})] -
Click Apply.
-