Hi,<div>in your case is there no way to insert data at other moments ? do you need all the data you insert ?</div><div>If you use statefull session you can insert data during time and not at once.</div><div>Also, the more rules you have with complex when conditions =&gt; The rete is big so inserting takes time.</div>
<div>On on of my project, using a rule flow makes it easier as you make decision step by step. So for each step, the rete graph is smaller (it my view when you divide in smaller steps) =&gt; Quicker when you insert.</div>
<div>Hope it helps</div><div>Nicolas Héron<br><br><div class="gmail_quote">2010/5/5 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Not having any clue about the fact structure (field types) and rule patterns<br>
makes it impossible to advise.<br>
<br>
&quot;Moving conditions around&quot; is, of course, one way, but there might be<br>
things you have overlooked; or essentially different techniques.<br>
<font color="#888888"><br>
-W<br>
</font><div><div></div><div class="h5"><br>
<br>
On Wed, May 5, 2010 at 10:19 AM, djb &lt;<a href="mailto:dbrownell83@hotmail.com">dbrownell83@hotmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Drools team,<br>
&gt;<br>
&gt; I wrote a Drools application for my company, which evaluates clinical claim<br>
&gt; processing rules.  That is, it checks current medical claims against the<br>
&gt; patient&#39;s historical claims.<br>
&gt;<br>
&gt; It appears that 95% of the run time is dedicated to inserting facts, which<br>
&gt; is presumably when it propagates through the RETE graph, since firing the<br>
&gt; rules takes no time.<br>
&gt;<br>
&gt; But it seems like it&#39;s not fast enough.  I made a rule template, which by<br>
&gt; trial and error of moving the conditions around, is optimised.  I&#39;m<br>
&gt; averaging 310ms, and need it to be under 170ms for it to be viable.<br>
&gt;<br>
&gt; Is there any not-too-technical guide to optimisation somewhere?  (alpha and<br>
&gt; beta-nodes scare me a bit).<br>
&gt;<br>
&gt; Regards,<br>
&gt; Daniel<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Insert-Fact-Speed-bottleneck-tp778322p778322.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Insert-Fact-Speed-bottleneck-tp778322p778322.html</a><br>

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