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

Low system performance when a class has four billion records



The class rule requires 600 seconds to load when the system holds a class which contains four billion records.

Error Messages

Class record is taking a long time to load

Steps to Reproduce

  1. Create a data class
  2. Map the data class to a table from the database using the data admin database table
  3. Insert four billion records in the table
  4. Open the Pega Dev portal
  5. Open the class rule form

Root Cause

A defect in Pegasystems’ code or rules. The query is changed such that instead of executing a query using count(*), a different style of the query is executed.  


Perform the following local-change:
Customize the RULE-OBJ-ACTIVITY RULE-OBJ-CLASS ONBEFOREDISPLAY activity rule which is available by modifying a local copy of the rule such that it does not use the select count(*) query, but selects a random value (character X) and limits the results to one.



Published August 19, 2019 - 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