[rules-users] Order of columns and of constraints

Dirk Bergstrom dirk at juniper.net
Wed May 30 22:27:02 EDT 2007


Does the order of columns in the rule definition, and the order of constraints
within a column matter?

For a given rule, I know which test is most likely to fail, and (probably) which
one is most "expensive" in terms of processing time (eg. 'someCollection
contains $var' is more expensive than 'field == "literal"').  I'd like to put
the fail-fast tests up front, and the expensive ones last.

Does that actually work in Drools?  Can I "optimize" my rules by juggling the
order of the columns and constraints?

-- 
Dirk Bergstrom               dirk at juniper.net
_____________________________________________
Juniper Networks Inc.,          Computer Geek
Tel: 408.745.3182           Fax: 408.745.8905



More information about the rules-users mailing list