Thanks Edson. Is there any example to rewrite the rule without rule?
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: Friday, September 05, 2008 2:59 PM To: Rules Users List Subject: Re: [rules-users] Drools, Performance issues on 4.0.7 Vs 2.5 Start by eliminating the evals and writing your constraints properly inside the patterns. Drools 3+ is orders of magnitude faster than Drools 2.x, but you need to leverage its power in your rules. Please read the manual as the version 3 was a completely rewrite of version 2. Version 4 is an improvement over 3. As an example, look at this: http://blog.athico.com/2006/11/rush-hour-and-content-based-routing.html []s Edson 2008/9/5 Rout, Sushanta (ThoughtMill) <[EMAIL PROTECTED]> We were using Drools 2.5 version earlier. Now we have switched to drools 4.0.7. But we see significant issues with performance like drools 4.0.7 is three times slower than 2.5 . Has anybody encountered the issue? Here is a sample of the rule, we have some more similar to this. rule "test" dialect "java" activation-group "group1" when $croNumberDetailsRequest : CRONumberDetailsRequest() $resdirectPhoneNumber : ResdirectPhoneNumber() eval($resdirectPhoneNumber.getType().getId() == 5 && $resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand( )) && $croNumberDetailsRequest.getRegion() != null && $resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion() ) && $croNumberDetailsRequest.getLocale() != null && $resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc ale()) && $resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot())); then ResultList.add($resdirectPhoneNumber); end _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
