<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi Thomas<BR> <BR>It's a tiny rule for now, but in the future i will append more conditions automatically by machines by analyzing some user logs, the size of the rule file may grow to several GBs and that's what i'm worrying about?<BR> <BR>Thanks<BR>Ramon<br> <BR><div><hr id="stopSpelling">From: TSwindells@nds.com<br>To: rules-users@lists.jboss.org; rouvas@di.uoa.gr<br>Date: Mon, 12 Dec 2011 09:54:01 +0000<br>Subject: Re: [rules-users] Can Drools supply large Knowledge Base?<br><br>
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:SimSun;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:SimSun;}
.ExternalClass pre
{margin-bottom:.0001pt;font-size:12.0pt;font-family:SimSun;}
.ExternalClass span.ecxHTMLPreformattedChar
{font-family:"Consolas","serif";}
.ExternalClass span.ecxEmailStyle20
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'>That¡¯s not a big rule, that is a tiny rule.</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'>So I¡¯m still not sure what you are actually worrying about and why you think you may have an issue.</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'> </span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'>Thomas</span></p>
<p class="ecxMsoNormal"><span style='color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'> </span></p>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: currentColor currentColor currentColor blue; padding: 0cm 0cm 0cm 4pt;">
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentColor currentColor; padding: 3pt 0cm 0cm;">
<p class="ecxMsoNormal"><b><span style='font-family: "Tahoma","sans-serif"; font-size: 10pt;'>From:</span></b><span style='font-family: "Tahoma","sans-serif"; font-size: 10pt;'> 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?</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Microsoft YaHei","sans-serif"; font-size: 10pt;'>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>
</span></p>
<pre>package com.company.license</pre>
<pre> </pre>
<pre>rule "Is of valid age"</pre>
<pre>when</pre>
<pre> $a : Applicant( age < 18 )</pre>
<pre>then</pre>
<pre> $a.setValid( false );</pre>
<pre>end</pre>
<p class="ecxMsoNormal"><span style='font-family: "Microsoft YaHei","sans-serif"; font-size: 10pt;'> <br>
So in the future the rule may include more and more conditions like below:<br>
<br>
<br>
</span></p>
<pre> </pre>
<pre> </pre>
<pre>rule "Is of valid age2"</pre>
<pre>when</pre>
<pre> $a : Applicant( age > 18 and age < 20 )</pre>
<pre>then</pre>
<pre> </pre>
<pre>...</pre>
<pre>end</pre>
<p class="ecxMsoNormal"><span style='font-family: "Microsoft YaHei","sans-serif"; font-size: 10pt;'><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</span></p>
<div>
<p class="ecxMsoNormal"><span style='font-family: "Microsoft YaHei","sans-serif"; font-size: 10pt;'>> 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" target="_blank">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" target="_blank">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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></span></p>
</div>
</div>
</div>
</div>
<br>
<hr>
<font color="gray" size="1" face="Arial"><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>
<br>_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users</div>                                            </div></body>
</html>