<br>&nbsp;&nbsp; You will not find any major impact in runtime performance, but it obviously affects compile performance, because there are more rules to compile.<br><br>&nbsp;&nbsp; The Rete algorithm is know for scaling very well to increasing number of rules, as long as the rules activated for each working memory actions remain constant.<br>
<br>&nbsp;&nbsp; Also, in the case of Drools, creating sessions is really cheap in terms of performance, because most of the data structures, like node memories, are lazily created and on an on-demand basis.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br>
<br><div class="gmail_quote">2008/11/21 Maxim Veksler <span dir="ltr">&lt;<a href="mailto:maxim.veksler@gmail.com">maxim.veksler@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div class="Ih2E3d"><br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 8:28 PM, vanshi <span dir="ltr">&lt;<a href="mailto:nilu.thakur@gmail.com" target="_blank">nilu.thakur@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi all,<br>
<br>
I have some set of rules which work on same Person object but depending on<br>
whether a person is student/employee/Faculty, the rule will have dfferent<br>
logic.<br>
<br>
So, I&#39;ve made 3 .drl files, one will have all the rules for students, other<br>
for employee and then last .drl for faculty. All 3 .drl have same package<br>
name (as the first statement in drl) but all rules are named differently.<br>
When my rule engine starts, it reads these 3 drl files and adds them to a<br>
single rule base, starts a new session, inserts person in working memory and<br>
fires rules.<br>
<br>
Now, my questions are...is there anything odd/wrong with this approach?<br>
Secondly, I had some rules names same in different drl and when I changed<br>
them ....then I started getting null pointer exception error..... during<br>
parsing of drl files. Any idea why is that?<br></blockquote></div><div><br></div></div>Hi&nbsp;<span style="border-collapse: collapse; white-space: nowrap;">vanshi</span><span style="border-collapse: collapse; font-weight: bold; white-space: nowrap;">,</span><div>

<span style="border-collapse: collapse; color: rgb(0, 104, 28); font-weight: bold; white-space: nowrap;"><br clear="all">
</span>In our system the rules are deployed in a similar method:</div><div>We have a &quot;include.drl&quot;, &quot;globles.drl&quot;, &quot;common.drl&quot; and the specific rules for each channel (C1, C2, C3).</div><div>

<br></div><div>The &quot;include.drl&quot; and &quot;globles.drl&quot; are inserted at system load to each of the filtering files (common, C1, C2...).&nbsp;</div><div>All the filtering files sit in the same package &quot;com.XX.filtering&quot;.&nbsp;</div>

<div><br></div><div>Up until now I had no problems with this approach, the only thing that I&#39;m concerned with is the RuleBaes performance because we use several &quot;Packages&quot; to build the sessions. &nbsp;</div><div>

<br></div><div>I hope someone on this list could answer if this working mode has effect on performance?</div><div><br>-- <br>Cheers, <br>Maxim Veksler<br><br>&quot;Free as in Freedom&quot; - Do u GNU ?<br>
</div></div>
<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> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>