<div dir="ltr"><br>&nbsp;&nbsp; David, it will use RETE but the actual data is retrieved &quot;on-demand&quot;... meaning no previous processing is made, and if it is a list, it will iterate the list every-time, so, it is less efficient than when the data is already in the working memory. It is useful for cases, for instance, when you have a lot of data outside of the working memory, but you are only interested in a small subset of the data... asserting all the data would then be a waste.<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/8/19 David Boaz <span dir="ltr">&lt;<a href="mailto:davidb@dbmotion.com">davidb@dbmotion.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi all,<br>
<br>
in the drools manual (6.5.28): &quot;FROM allows the engine to reason over data<br>
not in the working memory&quot;.<br>
Will drools use rete to evaluate patterns with a FROM source?<br>
<br>
Lets assume the following rule:<br>
WHEN p:Person(age&gt;60), Address(city=&quot;NY&quot;) FROM p.addresses<br>
will the rule engine match the Address pattern using rete?<br>
<br>
and, what about the following rule:<br>
when p:Person(age=&quot;m&quot;), Person(age&gt;60) from p<br>
1) will it work?<br>
2) will the age constraint be matched using rete?<br>
<br>
Thanks, David<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/FROM-and-the-working-memory-tp19020847p19020847.html" target="_blank">http://www.nabble.com/FROM-and-the-working-memory-tp19020847p19020847.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>