Please show the rule.

Exponentially growing activations can be caused by rules where the
same fact type is used more than once. You'll have to use constraints
inhibiting useless duplications, e.g.,

when
   $a1: A()
   $a2: A(this != $a1 )
then

-W



On 18/05/2012, Christina Lau <lau.christ...@hit.com.hk> wrote:
> Hi all,
>
> I find an odd pattern in the audit log. When an Object is inserted to the
> working memory, activation is created many times on same rule. The more
> objects are inserted, the duplicated activations are growing exponentially
> which degrade the performance a lot.
>
> Here attached part of the audit log:
>
> http://drools.46999.n3.nabble.com/file/n4000630/rule-DOCSEP-1337325521971.log
> rule-DOCSEP-1337325521971.log
>
> In the log,
> - when object (130) is inserted, rule "C020 - Gate charge (Out M)-B" is
> activiated 129 times.
> - when object (131) is inserted, rule "C020 - Gate charge (Out M)-B" is
> activiated 130 times.
>
> Here is the rule of "C020 - Gate charge (Out M)-B",
>
>
>
> The "insert" in RHS only add ChargeDetailRefSeqEntity to working memory
> that
> I don't think it causes the recursive activation.
>
> And I'd already set no-loop to true. Does anyone offer some help here?
>
>
> Thank you very much,
> Christina
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Object-activiates-same-rule-many-times-tp4000630.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to