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 <rodrigo.goncalves@coffeebeantech.com> 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
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users