Re: [rules-users] Speed up inserting of rules into knowledge base

2011-04-05 Thread Drooliver
I have a very similar issue - so I'm interested in any further performance tips or findings: We use Drools with an interface where users can update / edit rules. Those rules are then stored (and versioned) in a database. Afterwards the rules are fetched again from database and added one by one in

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-01-31 Thread Piotr Jedrychowski
Hello. Some time ago I wrote an e-mail with question how to parse and load a large group of rules in an efficient way. I've made a lot of tests and I have couple conclusions. Is there a possibility that someone could confirm (if I'm right) or deny (if I'm wrong) my conclusions, and explain

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-01-07 Thread Corneil du Plessis
You should only repeat knowledgeBuilder.add(resource, ResourceType.DRL); for each rule. The next thing you can do is to serialize the compiled rule packages. You should also consider using Guvnor to manage your rules. On 07/01/2011 14:05, Piotr Jedrychowski wrote: Hello. I'm loading a big

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-01-07 Thread Piotr Jedrychowski
Part: knowledgeBuilder.add(resource, ResourceType.DRL); is the most expensive part of my source code - rest of instructions are nothing when you compare them to above line. I cannot serialize the compiled rule packages because rules are generated from data read from database and this data

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-01-07 Thread Swindells, Thomas
] On Behalf Of Piotr Jedrychowski Sent: 07 January 2011 14:16 To: Rules Users List Subject: Re: [rules-users] Speed up inserting of rules into knowledge base Part: knowledgeBuilder.add(resource, ResourceType.DRL); is the most expensive part of my source code - rest of instructions are nothing when

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-01-07 Thread Corneil du Plessis
you may reconsider the structure of the rules. Push instead of pull. This means compare the file time or content to the database and only recreate rules that have modified. This way you can update the serialized packages where appropriate. Without knowing what your rules looks like I can