Tuning Parameters
Use the following tuning parameters to improve the performance of TIBCO OPE.
- Improve the performance of the engine by loading the required products in memory.
To load all the products in memory, the following flag should be enabled (its enabled by default) in ConfigValues_OPE.xml.
<ConfValue description="Max No of Product Model cached" name="Max No of Product Model cached" propname="com.tibco.af.ope.cacheType.cache.maxNoProductcached" sinceVersion="3.0" visibility="Advanced"> <ConfString default="0" value="0"/> </ConfValue>
Reduce calls to the database sets if you expect products missing the memory and the database. This setting is enabled by default.
<ConfValue description="Lazy load models from database if not found" name="Lazy models from database if not found" propname="com.tibco.af.ope.cacheType.cache.lazyLoadProducts" sinceVersion="4.0" visibility="Advanced"> <ConfString default="true" value="false"/> </ConfValue>
- Improve the response of the Offer Validation service by allowing the engine to return an error response at the first instance of a rule violation.
If not, the engine will evaluate all the error scenarios across the entire order before returning the error. The flag needs to be set to false to disable the engine returning all error scenarios.
<ConfValue description="Report all violations for offer validation" name="Report all violations for offer validation" propname="com.tibco.af.ope.flags.reportAllOfferValidations" sinceVersion="3.0" visibility="Basic"> <ConfBool default="true" value="true"/> </ConfValue>
- Improve the response of the GetOffer service with product information size by returning only the required product characteristics by specifying them in the request. For more information, see Get Offer Service.
- Reduce the size of the response and the time spent in generating the response by reusing the same products across different parents in the offer response by setting the flag to
true.
<ConfValue description="Filter out duplicate products for offers" name="Filter out duplicate products for offers" propname="com.tibco.af.ope.flags.filteroutduplicates" sinceVersion="3.0" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue>
- Enable pagination by toggling the flag in
ConfigValues_OPE.xml.
By default, this behavior is disabled. To enable, set the value to true.
<ConfValue description="Enable pagination for getOffer requests" name="ENABLE PAGES FOR GETOFFER" propname="com.tibco.af.ope.flags.enable.page" sinceVersion="3.0" visibility="Basic"> <ConfBool default="false" value="false"/> </ConfValue>
- Select the record window by using
PageNumber and
PageSize variables in the request parameters.
The default value for PageNumber is 1 and that for PageSize is 10.
<ns2:GetOfferRequest PageSize="5" PageNumber="1" />
- Enable sorting by including the
SortField and
SortOrder parameters in the request.
A separate configuration flag is not required to enable this functionality. If the SortField parameter is not used, the records are not sorted.
<ns2:GetOfferRequest SortFields="RECORD_TYPE" SortOrder="ASC" />
The following product attributes are supported for sorting:Characteristics are supported in the following format:CHAR::<CHAR_NAME>::<DATA-TYPE>. Default datatype is "String"
The default sortOrder is ascending with SortOrder ="ASC". The sort is reversed by SortOrder ="DESC".