How Do I Improve Oracle Business Rules Runtime Performance?
When trying to increase the performance of an application that uses a RuleSession object, you should try to minimize the number of times that you open the Repository and generate the RL code. Thus, you should avoid opening and reading a Repository for each RuleSession instance you create; this practice should allow the program to perform well in most cases. You can share the String object containing generated RL code, so that all application instances can use it for loading the rules into a private RuleSession object. If your application requires additional performance tuning, you can use a pooling mechanism to share a set of RuleSession objects. In this case, a common pool would hold RuleSession objects and a thread could obtain an object from the pool, use the object for a series of operations, and then return the object to the pool. RuleSession objects which throw an exception should not be reused. If an exception was thrown by the RuleSession, the pool would need to discard this in