Intuition can fail you, with Drools more than with many other systems I know...
Basically, the exists preceding an accumulate is akin to
if( list.size() > 0 )
for( Elem el: list ){...}
-W
On 31 August 2011 16:58, chocksmith <<a href="x-msg://3089/user/SendEmail.jtp?type=node&node=3298778&i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:Humm... I do not have a benchmark. Thats only intuition... :-)
If the fact does not exist, then all the rest of the LHS do not need to be
tested/calculated. When I try to imagine how is the implementation of the
"collect"... It sounds logical avoiding it if we know that it is not
necessary.
But I agree with you... It is redundant.
Tx!
R.
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Bulk-modification-tp3297162p3298615.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<a href="x-msg://3089/user/SendEmail.jtp?type=node&node=3298778&i=1" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
<a href="x-msg://3089/user/SendEmail.jtp?type=node&node=3298778&i=2" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
If you reply to this email, your message will be added to the discussion below:http://drools.46999.n3.nabble.com/rules-users-Bulk-modification-tp3297162p3298778.htmlTo unsubscribe from [rules-users] Bulk modification, click here.