[rules-users] What's more efficient?

David Sinclair dsinclair at chariotsolutions.com
Fri Nov 21 10:11:40 EST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081121/4986662a/attachment.html 


More information about the rules-users mailing list