Most of the time, Join will be better, specially if it is an == join or if you have many rules doing the same thing, because you get node sharing between them.

   If it is a one rule thing, or if the domain is large, but you need only part of the information, you may be better loading the information into the rule on-demand, using from.

   []s
   Edson

2008/11/21 David Sinclair <dsinclair@chariotsolutions.com>
I have a question regarding the performance of pattern matching. Is it more performant to use join nodes, or to use a from?

For example. With joins I could write a rule like

rule "Foo Join"
    when
        Foo($bar : bar != null)
        Bar(this == $bar)
    then
        ...       
end

rule "Foo From"
    when
        $foo :Foo()
        Bar () from $foo.bar
    then
        ...
end

thanks

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com