[rules-users] FROM and the working memory

Edson Tirelli tirelli at post.com
Tue Aug 19 08:41:03 EDT 2008


   David, it will use RETE but the actual data is retrieved "on-demand"...
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.

   []s
   Edson

2008/8/19 David Boaz <davidb at dbmotion.com>

>
> Hi all,
>
> in the drools manual (6.5.28): "FROM allows the engine to reason over data
> not in the working memory".
> Will drools use rete to evaluate patterns with a FROM source?
>
> Lets assume the following rule:
> WHEN p:Person(age>60), Address(city="NY") FROM p.addresses
> will the rule engine match the Address pattern using rete?
>
> and, what about the following rule:
> when p:Person(age="m"), Person(age>60) from p
> 1) will it work?
> 2) will the age constraint be matched using rete?
>
> Thanks, David
> --
> View this message in context:
> http://www.nabble.com/FROM-and-the-working-memory-tp19020847p19020847.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> 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/20080819/451c9f47/attachment.html 


More information about the rules-users mailing list