[rules-users] How to define static constant variable

Swindells, Thomas TSwindells at nds.com
Tue Nov 22 09:28:13 EST 2011


If you always have it as the first condition in your rule then Drools will only create a single node in the tree to do the match and the cost would be negligible.

Thomas

> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org [mailto:rules-users-
> bounces at lists.jboss.org] On Behalf Of Zhao Yi
> Sent: 22 November 2011 14:25
> To: rules-users at lists.jboss.org
> Subject: Re: [rules-users] How to define static constant variable
>
> The more fact I insert, the more performance cost, If I have more than 100
> rules, when I call insert, drools will check each rule condition to get all
> matched rules. This will be really time cost.
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/How-to-
> define-static-constant-variable-tp3527416p3527834.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************




More information about the rules-users mailing list