I'd certainly like to see alternatives to this, but one point I would
make to you is that you don't really know what the performance impact
will be.  Before trying to optimize something, first determine whether
you really have a performance problem, by testing it.  I doubt anyone
would dispute it will have an impact, but the relative impact could be
small (perhaps compared to any alternatives you might come up with).

> -----Original Message-----
> From: Sinha, Amitesh [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 11, 2006 12:12 PM
> To: [email protected]
> Subject: [spam]::[drools-user] XOR group
> 
> 
> 
> If the XOR group is used, all conditions are evaluated and 
> only one consequence is executed. E.g., If I have N rules, 
> all N conditions are evaluated before one consequence is 
> triggered. If the value of N is very high, this is going to 
> degrade the performance drastically.
> 
> <rule-set>
> 
>             <rule name=" Rule1">
>                         -
>                         -
>                         -
>             </rule>
>             <rule name=" Rule2 ">
>                         -
>                         -
>                         -
>             </rule>
> .
> .
> .
> 
>             <rule name=" RuleN ">
>                         -
>                         -
>                         -
>             </rule>
> </rule-set>
> 
> 
> Is there a way we can use so that when one condition is 
> satisfied, none of the other conditions are evaluated? 
> 
> 
> Thanks in advance,
> 
> Amitesh
> 
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions. 
> _____________________________________________________________________
> 
> This e-mail message may contain proprietary, confidential or 
> legally privileged information for the sole use of the person 
> or entity to whom this message was originally addressed. Any 
> review, e-transmission dissemination or other use of or 
> taking of any action in reliance upon this information by 
> persons or entities other than the intended recipient is 
> prohibited. If you have received this e-mail in error kindly 
> delete  this e-mail from your records. If it appears that 
> this mail has been forwarded to you without proper authority, 
> please notify us immediately at [EMAIL PROTECTED] and delete 
> this mail. 
> _____________________________________________________________________
> 

Reply via email to