<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 Laun<BR>&nbsp;<BR>I don't know how Drools can handle it or whether it can handle it even after&nbsp;i persist the rules into&nbsp;some database. But it becomes much more clearer to&nbsp;me that maybe Drools is not my best choice here, or at least i need to&nbsp;consider&nbsp;the options from Thomas. Thank you.<BR>&nbsp;<BR>Cheers<BR>Ramon<br>&nbsp;<BR><div>&gt; Date: Mon, 12 Dec 2011 11:02:28 +0100<br>&gt; From: wolfgang.laun@gmail.com<br>&gt; To: rules-users@lists.jboss.org<br>&gt; Subject: Re: [rules-users] Can Drools supply large Knowledge Base?<br>&gt; <br>&gt; Do you think that you are on the right track at all?<br>&gt; <br>&gt; A simple, single Java if built this way to have a size of several GBs<br>&gt; is a no-no.<br>&gt; <br>&gt; -W<br>&gt; <br>&gt; <br>&gt; 2011/12/12 WangRamon &lt;ramon_wang@hotmail.com&gt;:<br>&gt; &gt; Hi Thomas<br>&gt; &gt;<br>&gt; &gt; It's a tiny rule for now, but in the future i will append more conditions<br>&gt; &gt; automatically by&nbsp;machines by analyzing some user logs, the size&nbsp;of the rule<br>&gt; &gt; file may grow to several GBs and that's what i'm worrying about?<br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; &gt; Ramon<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; From: TSwindells@nds.com<br>&gt; &gt; To: rules-users@lists.jboss.org; rouvas@di.uoa.gr<br>&gt; &gt; Date: Mon, 12 Dec 2011 09:54:01 +0000<br>&gt; &gt; Subject: Re: [rules-users] Can Drools supply large Knowledge Base?<br>&gt; &gt;<br>&gt; &gt; That¡¯s not a big rule, that is a tiny rule.<br>&gt; &gt;<br>&gt; &gt; So I¡¯m still not sure what you are actually worrying about and why you think<br>&gt; &gt; you may have an issue.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thomas<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; From: rules-users-bounces@lists.jboss.org<br>&gt; &gt; [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of WangRamon<br>&gt; &gt; Sent: 12 December 2011 09:44<br>&gt; &gt; To: rouvas@di.uoa.gr; rules-users@lists.jboss.org<br>&gt; &gt; Subject
: Re: [rules-users] Can Drools supply large Knowledge Base?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hi Stathis<br>&gt; &gt;<br>&gt; &gt; You're probably right, maybe it's a wrong question, i'm new to Drools, so I<br>&gt; &gt; copy the rule sample from user guide&nbsp;as below to better explain,&nbsp;that's what<br>&gt; &gt; i need, but the rule will be automatically generated in the future..<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; package com.company.license<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; rule "Is of valid age"<br>&gt; &gt;<br>&gt; &gt; when<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp; $a : Applicant( age &lt; 18 )<br>&gt; &gt;<br>&gt; &gt; then<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp; $a.setValid( false );<br>&gt; &gt;<br>&gt; &gt; end<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; So in the future the rule may include more and more&nbsp;conditions like below:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; rule "Is of valid age2"<br>&gt; &gt;<br>&gt; &gt; when<br>&gt; &gt;<br>&gt; &gt; &nbsp;&nbsp;&nbsp; $a : Applicant( age &gt; 18 and age &lt; 20 )<br>&gt; &gt;<br>&gt; &gt; then<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ...<br>&gt; &gt;<br>&gt; &gt; end<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; So it may grow to be a very large rule(?), and this is actually my question:<br>&gt; &gt; how to handle this big rule? Thanks you guys<br>&gt; &gt;<br>&gt; &gt; Cheers<br>&gt; &gt; Ramon<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 12 Dec 2011 11:33:10 +0200<br>&gt; &gt;&gt; From: rouvas@mm.di.uoa.gr<br>&gt; &gt;&gt; To: rules-users@lists.jboss.org<br>&gt; &gt;&gt; Subject: Re: [rules-users] Can Drools supply large Knowledge Base?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; WangRamon wrote:<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Hi Guys I'm still confused about this question, let's say i may have a<br>&gt; &gt;&gt; &gt; very large rule set, how can Drools support this case, will it load<br>&gt; &gt;&gt; &gt; every<br>&gt; &gt;&gt; &gt; rule into memor
y? Any idea? Thank you guys. CheersRamon<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; You are either asking the wrong question or you do not understand what you<br>&gt; &gt;&gt; are asking.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; In your previous post, you mentioned a Knowledge Base of 100GB.<br>&gt; &gt;&gt; In this post you are talking about a rule set.<br>&gt; &gt;&gt; These are different things.<br>&gt; &gt;&gt; A Knowledge Base contains rules *and* facts and can indeed be quite large.<br>&gt; &gt;&gt; A rule set contains only rules. For a rule set to grow this much, it means<br>&gt; &gt;&gt; you have seriously misunderstand your problem. I would suggest you go back<br>&gt; &gt;&gt; to the drawing board.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Real-world example:<br>&gt; &gt;&gt; Rule set of about 400 rules.<br>&gt; &gt;&gt; Facts : In the order to 100.000.<br>&gt; &gt;&gt; Command line execution shows an approximate 400MB RAM consumption, meaning<br>&gt; &gt;&gt; with the JDK and all (not only Drools memory consumption).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; So, unless you want to hear from someone more experienced than me, I'd<br>&gt; &gt;&gt; suggest you re-phrase your question by stating the exact problem you are<br>&gt; &gt;&gt; facing or anticipating.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Cheers,<br>&gt; &gt;&gt; -Stathis<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt; From: ramon_wang@hotmail.com&gt; &amp;g t; To: rules-users@lists.jboss.org<br>&gt; &gt;&gt; &gt; Date: Thu, 8 Dec 2011 11:59:21 +0800<br>&gt; &gt;&gt; &gt; Subject: [rules-users] Can Drools supply large Knowledge Base?<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Hi All<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; I'm new to Drools, I will build a very large Knowledge Base, let's say<br>&gt; &gt;&gt; &gt; it<br>&gt; &gt;&gt; &gt;
 will be larger than 100GB, the files will be stored in a distribute<br>&gt; &gt;&gt; &gt; database, so can Droools supply this large Knowledge Base? Any solution?<br>&gt; &gt;&gt; &gt; Thank you very much.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Cheers<br>&gt; &gt;&gt; &gt; Ramon<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; _______________________________________________<br>&gt; &gt;&gt; &gt; rules-users mailing list<br>&gt; &gt;&gt; &gt; rules-users@lists.jboss.org<br>&gt; &gt;&gt; &gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &gt;&gt; &gt; _______________________________________________<br>&gt; &gt;&gt; &gt; rules-users mailing list<br>&gt; &gt;&gt; &gt; rules-users@lists.jboss.org<br>&gt; &gt;&gt; &gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; rules-users mailing list<br>&gt; &gt;&gt; rules-users@lists.jboss.org<br>&gt; &gt;&gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt;<br>&gt; &gt; **************************************************************************************<br>&gt; &gt; This message is confidential and intended only for the addressee. If you<br>&gt; &gt; have received this message in error, please immediately notify the<br>&gt; &gt; postmaster@nds.com and delete it from your system as well as any copies. The<br>&gt; &gt; content of e-mails as well as traffic data may be monitored by NDS for<br>&gt; &gt; employment and security purposes. To protect the environment please do not<br>&gt; &gt; print this e-mail unless necessary.<br>&gt; &gt;<br>&gt; &gt; NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18<br>&gt; &gt; 4EX, United Kingdom. A company registered in England and Wales. Registered<br>&gt; &gt; no. 3080780. VAT no. GB 603 8808 40-00<br>&gt; &gt; ****************************************
**********************************************<br>&gt; &gt;<br>&gt; &gt; _______________________________________________ rules-users mailing list<br>&gt; &gt; rules-users@lists.jboss.org<br>&gt; &gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; rules-users mailing list<br>&gt; &gt; rules-users@lists.jboss.org<br>&gt; &gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &gt;<br>&gt; <br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; rules-users@lists.jboss.org<br>&gt; https://lists.jboss.org/mailman/listinfo/rules-users<br></div>                                               </div></body>
</html>