[rules-users] @Rete Experts: the finer meshes of matching

Wolfgang Laun wolfgang.laun at gmail.com
Thu Apr 8 14:56:41 EDT 2010


It's common Rete wisdom to order patterns by expected frequency of
matches, in descending order.

Does this also apply to constraints within a single pattern? For
example, is it better to write, for a New York address
   Address( street == "Broadway", number == 1)
than
   Address( number == 1, street == "Broadway")
or is this irrelevant?

Or does it depend on either constraint (on each own) also occurring in
another rule without the other one?

I guess this could also depend on the implementation, i.e., how
fine-grainedly condition sharing is being done.

Cheers
Wolfgang



More information about the rules-users mailing list