<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><P>Control facts could be a good solution if a execution (of rules) can use some multiple DRL, and if you are using a lot of facts.</P>
<P>For example, if you want to do DRL1 and then DRL5 (because of some logic) on the same facts, in that order, you can add "control rules" to your KB that set/update the Context fact according to some conditions.</P>
<P>Note that you can do the same with multiple KB, but then you have to re-insert the objects from one session to another (but it is not so complex, nor so costly).</P>
<P>&nbsp;</P>
<P>But for the number of DRL you have, I really think that cutting them in KB will be better. Moreover you can implement a "big chief controller", that stores the KB in a map, lazily complied when needed. This way, you may not have the whole 300 KB in memory ...</P>
<P>And you can even distribute the KB in distributed Agents, and implement the "big chief controller" with drools (with fusion?) to store some logic about launching the suitable KB according to the event you get, or chain KB, or whatever you can imagine.</P>
<P><BR>&nbsp;</P>
<P>
<HR id=zwchr>
</P>
<P><B>De: </B>"Michael Anstis" &lt;michael.anstis@gmail.com&gt;<BR><B>À: </B>"Rules Users List" &lt;rules-users@lists.jboss.org&gt;<BR><B>Envoyé: </B>Mercredi 20 Juillet 2011 11:32:12<BR><B>Objet: </B>Re: [rules-users] [Drools4]: Filter executed rules by *.drl file<BR><BR>It was just a feeling, but Vincent's words from (presumably) experience gives the individual rulebase option more credence.<BR><BR></P>
<DIV class=gmail_quote>On 20 July 2011 09:29, magendo <SPAN dir=ltr>&lt;<A href="mailto:robert.heisenberg@yahoo.com" target=_blank>robert.heisenberg@yahoo.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>Thanks for your answers.<BR><BR>The context fact thing would work, but it is really polluting the rules and<BR>makes a lot of unnecessary constraint checks. Furthermore the extends is not<BR>implemented in Drools 4 or I am blind (maybe it would be a good idea to<BR>switch to drools 5 anyway...).<BR><BR>So I think I will go with the one drl per rulebase solution.<BR>@manstis: Could you explain why you think the control fact solution is<BR>better?<BR><FONT color=#888888><BR>--<BR>View this message in context: <A href="http://drools.46999.n3.nabble.com/Drools4-Filter-executed-rules-by-drl-file-tp3182568p3184864.html" target=_blank>http://drools.46999.n3.nabble.com/Drools4-Filter-executed-rules-by-drl-file-tp3182568p3184864.html</A><BR></FONT>
<DIV class=im>Sent from the Drools: User forum mailing list archive at Nabble.com.<BR>_______________________________________________<BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" target=_blank>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><BR>_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></div></body></html>