[rules-users] Performance issue: why are rules outside of ruleflow-group evaluated?

Mark Proctor mproctor at codehaus.org
Tue Jan 11 06:26:25 EST 2011


On 10/01/2011 16:43, H.C. wrote:
> Hey,
>
> We are dealing with performance issues at the moment are trying to find ways
> to improve the performance of our conditional statements.
>
> We see that when an update happens, drools will evaluate conditional
> statements of rules outside of the ruleflow-group currently active.
>
> Is there a way to prevent this from happening? It would substantially reduce
> the number of rules being evaluated and improve performance for us.
>
> Thanks for any help.
There is no current way for this to happen, but it would make an 
interesting and not too difficult project. What you want to do is unlink 
the parts of the network that are in groups that are not currently 
active, and link them back when active.

There are ups and downs to this approach though. If there are a large 
number of matched rules and they don't change much, you are forcing them 
to fully evaluated each time the group activates. So while in some cases 
this might give a performance increase, there are other cases where it 
would give a decrease....


Mark




More information about the rules-users mailing list