Get Started with Revenue Management Developer Resources
Revenue Management Settings
Modeling a Generator Set
Core Concept Examples
About the Apex Debugging Log File
Use the Apex Debugging Log File
Model Structure
Previous Versions
For optimal performance with CML, follow the performance guidelines and use debug logging to debug constraint models.
Follow these performance guidelines to prevent performance issues.
| Metric | Optimal | marginal | critical |
|---|---|---|---|
| Total Execution Time | <100 ms | 100 ms–1 s | >1 s (10 s = hard timeout) |
| Backtracks | <1,000 | 1,000–10,000 | >10,000 |
| Constraint Violations | 0 | 1–100 | >100 |
To debug constraint models and troubleshoot performance issues, turn on debug logging in Apex and set the debug log level to FINE. For more information on debug logging in Salesforce, see these topics in Salesforce Help:
Use the Apex log to get information about constraint rules engine performance when running a constraint model, including performance degradation or unexpected behavior. To improve performance, modify the constraint model based on information in the log.
For tips on writing trouble-free CML, see Constraint Modeling Language (CML) Best Practices.
About the Apex Debugging Log File
The Apex debugging log file contains three sections: RLM_CONFIGURATOR_BEGIN, RLM_CONFIGURATOR_STATS, and RLM_CONFIGURATOR_END.
Use the Apex Debugging Log File
To find possible reasons for the performance problems and identify solutions, look at the RLM_CONFIGURATOR_STATS section of the log file.