I was working in KnowledgeAgent incremental change-set processing. Right now, the agent only adds to the kbase those rules that were modified. The bad news are that in order to know if a rule was modified or not, the agent must compile the resource.<div>

<br></div><div>Here you can find more info: <a href="http://ilesteban.wordpress.com/2010/03/25/knowledge-agent-incremental-change-set-processing-and-binary-diff/">http://ilesteban.wordpress.com/2010/03/25/knowledge-agent-incremental-change-set-processing-and-binary-diff/</a></div>

<div><br></div><div><a href="http://ilesteban.wordpress.com/2010/03/25/knowledge-agent-incremental-change-set-processing-and-binary-diff/"></a>I&#39;m planning to post a more detailed explanation of what happens inside the kagent when processing change-sets.</div>

<div><br></div><div>Best, <br><br><div class="gmail_quote">2010/5/19 Luiz Eduardo Guida Valmont <span dir="ltr">&lt;<a href="mailto:legvalmont@gmail.com">legvalmont@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all,<br><br>I&#39;m working on an application that has to maintain a knowledge base that&#39;ll change (a lot) over time; meaning some rules might change, others will be added and, finally, some will be deleted from the KB. Our tests show the following un-expected (imho *) behaviors:<br>



<ul><li>Whenever the contents of the KB change, all rules associated with it are re-compiled.It doesn&#39;t matter whether one rule or all of them were changed.<br></li><li>If the time taken to re-compile all rules is greater than the frequency according to which resource change notification / scanner services poll the KB, then the KB will be re-compiled more than once. I can&#39;t measure how many extra compilations happen due to time constraints; it takes more than 10 minutes for the application to compile all rules and something like 5 minutes to recompile the smallest possible version of it.</li>



</ul>So... my question is: is possible to fine tune this behavior so that drools won&#39;t recompile everything from scratch? More than that, I&#39;d like to have it wait for itself to finish any compilation that might happening at the time. Is it possible?<br>



<br>My approach to using drools is the following: create a KnowledgeAgent, then have it apply a change set that points to a directory that contains DRL files. And this has to be done for five different KA&#39;s. I suppose this is the correct approach.<br>



<br>Thanks in advance for any feedback that you might have.<br><br>Regards,<br><font color="#888888">Luiz Eduardo<br>
</font><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><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>