<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;
        mso-fareast-language:ZH-CN;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:SimSun;
        mso-fareast-language:ZH-CN;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;
        mso-fareast-language:ZH-CN;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        mso-fareast-language:ZH-CN;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That’s not a big rule, that is a tiny rule.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So I’m still not sure what you are actually worrying about and why you think you may have an issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thomas<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>WangRamon<br>
<b>Sent:</b> 12 December 2011 09:44<br>
<b>To:</b> rouvas@di.uoa.gr; rules-users@lists.jboss.org<br>
<b>Subject:</b> Re: [rules-users] Can Drools supply large Knowledge Base?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif"">Hi Stathis<br>
<br>
You're probably right, maybe it's a wrong question, i'm new to Drools, so I copy the rule sample from user guide as below to better explain, that's what i need, but the rule will be automatically generated in the future..<br>
<br>
<br>
<o:p></o:p></span></p>
<pre>package com.company.license<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>rule "Is of valid age"<o:p></o:p></pre>
<pre>when<o:p></o:p></pre>
<pre> $a : Applicant( age < 18 )<o:p></o:p></pre>
<pre>then<o:p></o:p></pre>
<pre> $a.setValid( false );<o:p></o:p></pre>
<pre>end<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif""> <br>
So in the future the rule may include more and more conditions like below:<br>
<br>
<br>
<o:p></o:p></span></p>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>rule "Is of valid age2"<o:p></o:p></pre>
<pre>when<o:p></o:p></pre>
<pre> $a : Applicant( age > 18 and age < 20 )<o:p></o:p></pre>
<pre>then<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>...<o:p></o:p></pre>
<pre>end<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif""><br>
So it may grow to be a very large rule(?), and this is actually my question: how to handle this big rule? Thanks you guys<br>
<br>
Cheers<br>
Ramon<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Microsoft YaHei","sans-serif"">> Date: Mon, 12 Dec 2011 11:33:10 +0200<br>
> From: <a href="mailto:rouvas@mm.di.uoa.gr">rouvas@mm.di.uoa.gr</a><br>
> To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> Subject: Re: [rules-users] Can Drools supply large Knowledge Base?<br>
> <br>
> WangRamon wrote:<br>
> ><br>
> > Hi Guys I'm still confused about this question, let's say i may have a<br>
> > very large rule set, how can Drools support this case, will it load every<br>
> > rule into memory? Any idea? Thank you guys. CheersRamon<br>
> <br>
> You are either asking the wrong question or you do not understand what you<br>
> are asking.<br>
> <br>
> In your previous post, you mentioned a Knowledge Base of 100GB.<br>
> In this post you are talking about a rule set.<br>
> These are different things.<br>
> A Knowledge Base contains rules *and* facts and can indeed be quite large.<br>
> A rule set contains only rules. For a rule set to grow this much, it means<br>
> you have seriously misunderstand your problem. I would suggest you go back<br>
> to the drawing board.<br>
> <br>
> Real-world example:<br>
> Rule set of about 400 rules.<br>
> Facts : In the order to 100.000.<br>
> Command line execution shows an approximate 400MB RAM consumption, meaning<br>
> with the JDK and all (not only Drools memory consumption).<br>
> <br>
> So, unless you want to hear from someone more experienced than me, I'd<br>
> suggest you re-phrase your question by stating the exact problem you are<br>
> facing or anticipating.<br>
> <br>
> Cheers,<br>
> -Stathis<br>
> <br>
> <br>
> <br>
> > From: <a href="mailto:ramon_wang@hotmail.com">ramon_wang@hotmail.com</a>> &g t; To:
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> > Date: Thu, 8 Dec 2011 11:59:21 +0800<br>
> > Subject: [rules-users] Can Drools supply large Knowledge Base?<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Hi All<br>
> ><br>
> > I'm new to Drools, I will build a very large Knowledge Base, let's say it<br>
> > will be larger than 100GB, the files will be stored in a distribute<br>
> > database, so can Droools supply this large Knowledge Base? Any solution?<br>
> > Thank you very much.<br>
> ><br>
> > Cheers<br>
> > Ramon<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">https://lists.jboss.org/mailman/listinfo/rules-users</a><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
> ><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data
may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font>
</body>
</html>