<div dir="ltr">I&#39;m assuming some kind of stateless classification-type knowledge base. As Wolfgang says, if the RHS of your rules are executing code outside the ksession itself (other than just insert/modify/retract facts), then the implementation is much much complex and I don&#39;t think it worth it.<div>

<br></div><div>Regards,</div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>


<br><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 11:16 AM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

If it&#39;s general enough, it is not something to be shrugged off as &quot;not<br>
that hard&quot;.<br>
<br>
You&#39;ll have to keep the fact and memorize all rules it fires, and<br>
create a mechanism that&#39;ll let you call right hand sides when the<br>
duplicate fact<br>
arrives and with all variables bound to the same values. Huh!<br>
<span class="HOEnZb"><font color="#888888"><br>
-W<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 09/04/2014, Esteban Aliverti &lt;<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>&gt; wrote:<br>
&gt; The question here is: what is the result of fireAllRules()? Caching the<br>
&gt; result of this method is trivial: it&#39;s just a number! I think that what you<br>
&gt; need to build is your own ad-hoc cache that knows how to extract a &#39;result&#39;<br>
&gt; out of the session an keep it handy. Implementing this mechanism shouldn&#39;t<br>
&gt; be that hard (at least for simple - no nested- Facts) and once you have it<br>
&gt; you can validate the benefits.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt;<br>
&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt; Esteban Aliverti<br>
&gt; - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
&gt;<br>
&gt;<br>
&gt; On Wed, Apr 9, 2014 at 11:02 AM, Leonard93<br>
&gt; &lt;<a href="mailto:leonardlindenau@hotmail.com">leonardlindenau@hotmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Wouldn&#39;t that depend on how long the data is being kept and how often<br>
&gt;&gt; identical rules are being fired?<br>
&gt;&gt;<br>
&gt;&gt; Or would you say the rule engine is faster than all the actions in<br>
&gt;&gt; between<br>
&gt;&gt; that it wouldnt matter?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/Identical-Facts-over-rules-results-being-cached-tp4029169p4029172.html" target="_blank">http://drools.46999.n3.nabble.com/Identical-Facts-over-rules-results-being-cached-tp4029169p4029172.html</a><br>


&gt;&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<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>
</div></div></blockquote></div><br></div>