<div dir="ltr">Thanks I understand now. It is quite clear.<div><br></div><div>In my case however, the accumulated Foo&#39;s will be different for each source Foo. The two classes could have been different. A more precise sample conditions would be :</div>


<div><div style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif"><br></span></div><div style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif">  $a: A(someConditions)</span></div><div style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif">  </span><font face="arial, sans-serif">accumulate ($b:B(someField==$a.somefield); ....)</font></div>


<div style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><font face="arial, sans-serif"><br></font></div><div style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">


<div>My problem being that the Drools engine will create one RightTuple per instance of B (and per rule with a similar accumulate), even if no instance of A matches the <span style="font-family:arial,sans-serif">someConditions.</span></div>


<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">I will try to add alpha conditions (not related to $a or other CI) to $b, to reduce the number of joinable instances, but it would be great to be able to ask drools to wait for the $a to match before looking for the $b&#39;s. Was&#39;nt it something that Phreak enabled ?</span></div>


</div><div><br></div></div><div><br></div><div class="gmail_extra">And about the diagnostic function, listing the most numerous Tuples. Does a similar it exist somewhere? If not do you think it could help others ? It sure helps me finding the related conditions.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Benoît</div>
</div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Analysing-OutOfMemory-too-many-RightTuple-tp4029988p4030024.html">Re: [rules-users] Analysing OutOfMemory, too many RightTuple</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>