[rules-users] What's more efficient?
Edson Tirelli
tirelli at post.com
Fri Nov 21 18:06:01 EST 2008
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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081121/6fc36d45/attachment.html
More information about the rules-users
mailing list