This Q should probably go across to the USER list now, unless you are opting to profile and find any issues in the drools codebase :)

Btw if you are generating rules per customer, and have 10K customers. You can try partitioning the rules, to rule bases, in this case 60 rules per rule base.

Mark

On 13 Aug 2013, at 14:22, Mark Proctor <mproctor@codehaus.org> wrote:

On the current release, there isn't much you can do. But you could try using a profiler against 6.x, and look out for any bottlenecks. The rete builder code is fairly simple, so I'm not sure how much room for optimisation there is; but you never know what you might turn up. 

Probably the main gains would be from parallel rule addition, but that is a lot of work, and planned for the future - so won't help now. Always a good task for someone with some time :)

You may be able to change your application to be more data driven, rather than encoding it all in the rules - this might help reduce the number of rules.

Btw we are always looking for real world test cases, so maybe could submit your 600K rules as one?

Mark


On 13 Aug 2013, at 14:15, Mark Proctor <mproctor@codehaus.org> wrote:

So you are loading 600K rules into one rule base, 30K rules at a time??

Mark
On 13 Aug 2013, at 14:10, nmsundar <sundar_m@solartis.net> wrote:

Thanks Laune for you reply ,

I meant 20 set as we need to have 20  x 30k rules to be loading in knowledgebase in our application.


 

-----Original Message-----
From: "laune [via Drools]" <[hidden email]>
Sent: Tuesday, August 13, 2013 6:31pm
To: "nmsundar" <[hidden email]>
Subject: Re: Reg : Handling large number of rules

On 13/08/2013, nmsundar <[hidden email]> wrote:
> Hi Team,
>
> I think your help will be really helpfull for my situation,
>
> We are having 30k rules and we have converted those set of rules in to pkg
> files.
>
> 1. knowledgebase loading time takes upto 40 - 60 secs . Is this time ok ?
> 2. when we try to load 20 set of these 30k rules we are facing problems -

What do you mean by "load 20 set"? Which problems?
-W



> Any help would be helpfull .
>
> Note : Java heap space 2gb and permgen space is 512mb
>
> Thanks in Advance,
> M.Sundar
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Reg-Handling-large-number-of-rules-tp4025502.html
> Sent from the Drools: Developer (committer) mailing list mailing list
> archive at Nabble.com.
> _______________________________________________
> rules-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
_______________________________________________
rules-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-dev



If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Reg-Handling-large-number-of-rules-tp4025502p4025506.html
To unsubscribe from Reg : Handling large number of rules, click here.
NAML


View this message in context: Re: Reg : Handling large number of rules
Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev