Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

PEGA0020 alerts indicates poor performance of RULE-CONNECT-REST



After a system update to Pega 7.1.9 from Pega 7.1.7, it was observed that response time of a specific use case is 30% slower than Pega 7.1.7.
RULE-CONNECT-REST rules observed by PEGA0020 alerts indicated poor performance.
The observable difference was in pxConnectInMapReqElapsed which is worse by about 250 ms.

Error Messages

Not Applicable

Steps to Reproduce

Configure an application with Connect-REST connector to retrieve data from an external web service.

Root Cause

A defect in Pegasystems’ code or rules. The issue is identifiable by high values of the pxConnectInMapReqElapsed metric reported by PEGA0020 alerts. 
For example: 

RULE-CONNECT-REST MYCO-INT-MYRESTCONNECTOR MYRESTCONNECTOR #20151201T152751.519 GMT has exceeded the threshold of 100 ms: 893 ms;pxConnectOutMapReqElapsed=0;pxConnectClientResponseElapsed=199;pxConnectInMapReqElapsed=316;

A un-optimized JSON mapping strategy is causing the performance issue. The code iterates through all the properties in the target mapping class to check the property qualifier in each property and compare it against the JSON field in the incoming response. 
The below SQL Query is executed multiple times which cause the performance problem. 

SELECT pyPropertyName AS "pyPropertyName", pyPageClass AS "pyPageClass", pyPropertyMode AS "pyPropertyMode" FROM RULES.pr4_rule_property "property" WHERE (pxObjClass = 'Rule-Obj-Property') AND (pyClassName = ?) AND (pyRuleAvailable = 'Yes').


Apply HFix-25126.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us