<br>On 16 November 2012 16:14, riri <span dir="ltr">&lt;<a href="mailto:irina.adam@gmail.com" target="_blank">irina.adam@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for your response! Yes, you are right, there will be some rules<br>
that are absolute and available to all the users so a single knowledge base<br>
approach would make sense. From what I can gather from the Drools Expert<br>
documentation you can have a knowledge agent that can update the knowledge<br>
base if new resources are added. In this way one can add new rule files,<br>
please correct me if I&#39;m wrong on this one.<br></blockquote><div><br>I guess the best way would be to create a KB for each session, loading the<br>compiled generic rules and adding the freshly compiled individual ones. NP.<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
My first question is, is there a mechanism to differentiate between the<br>
rules defined by each user and not have all of them apply? For example if<br>
one user has a rule that turns on the heating when the temperature drops<br>
below 16 degrees and another for 18 degrees?</blockquote><div><br>This would be a typical example for adding a parameter fact to provide the threshold,<br>with the generic rule simply referring to that threshold. <br><br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> I am still trying to figure out<br>
how the knowledge base, sessions and the working memory work together so<br>
please bear with me.<br>
<br>
My second question is, if rule execution is possible in a separate manner<br>
depending on the user and everything could be done using sessions, how would<br>
drools perform when having 100 or more of these sessions working<br>
concurrently on the same knowledge base?<br></blockquote><div><br>You should consider separate knowledge sessions for each user. Then it&#39;s a<br>question whether your system is powerful to cope with that many clients. As for<br>
the cycles required for reasoning I can&#39;t imagine any home having so much stuff <br>to reason about, except, maybe, something in the category of the Palace of Versailles<br>or one of these towers in Abu Dhabi? ;-)<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Again, extremely grateful for all your input, time and patience!<br></blockquote><div><br>NP. Cheers<br>-W <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-scalability-in-home-automation-scenarios-tp4020855p4020864.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-scalability-in-home-automation-scenarios-tp4020855p4020864.html</a><br>

Sent from the Drools: User forum 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>
</blockquote></div><br>