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 => 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) => 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"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></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>
"Moving conditions around" 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 <<a href="mailto:dbrownell83@hotmail.com">dbrownell83@hotmail.com</a>> wrote:<br>
><br>
> Hi Drools team,<br>
><br>
> I wrote a Drools application for my company, which evaluates clinical claim<br>
> processing rules. That is, it checks current medical claims against the<br>
> patient's historical claims.<br>
><br>
> It appears that 95% of the run time is dedicated to inserting facts, which<br>
> is presumably when it propagates through the RETE graph, since firing the<br>
> rules takes no time.<br>
><br>
> But it seems like it's not fast enough. I made a rule template, which by<br>
> trial and error of moving the conditions around, is optimised. I'm<br>
> averaging 310ms, and need it to be under 170ms for it to be viable.<br>
><br>
> Is there any not-too-technical guide to optimisation somewhere? (alpha and<br>
> beta-nodes scare me a bit).<br>
><br>
> Regards,<br>
> Daniel<br>
><br>
><br>
> --<br>
> 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>
> Sent from the Drools - User mailing list archive at Nabble.com.<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>
<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>