Do you mean that insert (&quot;send&quot;) Y times A inserts Y times Aevent with the very same id?!<br><br>If so, you will have to reconsider your approach because you are creating the worst possible scenario for the Rete algorithm, i.e., O(n^3) cartesian tuples for your activations.<br>
<br>There are strategies for countering this. A full(er) description of other requirements (if any) for this A-B-C rule would be necessary for doling out good advice.<br><br>-W<br> <br><br><div class="gmail_quote">2010/11/15 Roess. Oliver <span dir="ltr">&lt;<a href="mailto:o.roess@seeburger.de">o.roess@seeburger.de</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;">








<div link="blue" vlink="purple" lang="DE"><font size="1" color="#808080" face="Arial"></font><br>

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hello again.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks for your test Wolfgang. When I do it like you
did, I get approx. the same results. But you misunderstood my scenario. I don’t
want to send ABC x times. Here’s what I meant in pseudocode.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">for ( i = 0; i &lt; X; i++) </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">            Send
Y times A</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">            Send
Y times B</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">            Send
Y times C</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I dropped the idea of calling fireUntilHalt() and now
I call fireAllRules after every single insert, just to be quick. This avoids
the problem of getting random execution durations. Now I produce nearly
constant times every time I execute this. But it is still not very satisfying.
These are just a few hundred events. In a real business scenario it will be a
lot more. Increasing X will cause the time to go up linearly which is ok, but
increasing Y will have the time go up overproportional, which is not
acceptable. We will evaluate this now with a really good machine. But it would
be interesting to see what results others achieve in this scenario.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Best regards,</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Oliver</span></font></p><font color="#888888">

</font></div><div class="im">

<br><table style="border-collapse: collapse;" width="100%" border="0">
<tbody><tr>
                <td style="border-bottom-style: double; border-bottom-width: 3px;" width="272"> </td>
                <td style="border-bottom-style: double; border-bottom-width: 3px;" width="45"> </td>
                <td style="border-bottom-style: double; border-bottom-width: 3px;"> </td>
</tr></tbody></table>

<br><br>

<table style="border-collapse: collapse;" width="100%" border="0">
        <tbody><tr>
                <td width="272"><font size="1" color="#808080" face="Arial"><b>SEEBURGER AG</b></font></td>

                <td width="45"> </td>
                <td><font size="1" color="#808080" face="Arial">Vorstand/Seeburger Executive Board:</font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">Sitz der Gesellschaft/Registered Office:</font></td>
                <td width="45"> </td>
                <td><font size="1" color="#808080" face="Arial">Bernd Seeburger, Axel Haas, Michael Kleeberg</font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">Edisonstr. 1</font></td>
                <td width="45"> </td>
                <td><font size="1" color="#808080" face="Arial"></font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">D-75015 Bretten</font></td>
                <td width="45"><font size="1" color="#808080" face="Arial"></font></td>
                <td><font size="1" color="#808080" face="Arial">Vorsitzender des Aufsichtsrats/Chairperson of the Seeburger Supervisory Board:</font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">Tel.: 07252 / 96 - 0</font></td>
                <td width="45"><font size="1" color="#808080" face="Arial"></font></td>
                <td><font size="1" color="#808080" face="Arial">Dr. Franz Scherer</font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">Fax: 07252 / 96 - 2222</font></td>
                <td width="45"><font size="1" color="#808080" face="Arial"></font></td>
                <td><font size="1" color="#808080" face="Arial"></font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">Internet: <a href="http://www.seeburger.de" target="_blank">http://www.seeburger.de</a></font></td>
                <td width="45"><font size="1" color="#808080" face="Arial"></font></td>
                <td><font size="1" color="#808080" face="Arial">Registergericht/Commercial Register:</font></td>
        </tr>
        <tr>
                <td width="272"><font size="1" color="#808080" face="Arial">e-mail: <a href="mailto:info@seeburger.de" target="_blank">info@seeburger.de</a></font></td>
                <td width="45"><font size="1" color="#808080" face="Arial"></font></td>
                <td><font size="1" color="#808080" face="Arial">HRB 240708 Mannheim</font></td>
        </tr>
        
        
</tbody></table>

<p><font size="2" face="Arial"><br></font></p>
<p align="justify"><font size="1" color="#808080" face="Arial">Dieses E-Mail ist
nur für den Empfänger bestimmt, an den es gerichtet ist und kann vertrauliches
bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin
enthaltene Ansicht oder Meinungsäußerung ist die des Autors und stellt nicht
notwendigerweise die Ansicht oder Meinung der  dar. Sind Sie nicht der Empfänger, so haben Sie diese E-Mail irrtümlich erhalten und jegliche Verwendung, Veröffentlichung, Weiterleitung, Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt. Weder die  noch der Absender (Oliver Roess) übernehmen die Haftung für Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren 
Anhänge (0) auf Viren zu prüfen.
<br><br>
<p align="justify"><font size="1" color="#808080" face="Arial">The present email addresses only the addressee which it targets and may contain confidential material that may be protected by the professional secret. The opinions reflected herein are not necessarily the one of the . If you are not the addressee, you have accidentally got this email and are not enabled to use, publish, forward, copy or print it in any way. Neither the , nor the sender (Oliver Roess) are liable for viruses, being your own responsibility to check this email and its attachments (0) for this purpose. 
<br><br><br></font></p></font></p></div></div>



<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>
<br></blockquote></div><br>