Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-27 Thread Michael Anstis
In short no. Activations are determined when Facts are inserted into WorkingMemory not when a call to fire the rules is made. Consequentially, IMO, "through put" is really limited to how quickly you can insert Facts into the network. You could have multiple threads inserting Facts into different s

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-27 Thread Harshit Bapna
Hi All, Thanks to Leo and Mark for the help... Please find my comments(blue) inline. Crisp question: *Is there any functionality in drools where I can run the rules(stateless session) in parallel threads to increase the throughput ?* Note: The rules actions won't change the facts/data such that i

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Leonardo Gomes
Hello Harshit / Mark, My reasoning behind the yes, is that: - If you have 10 rules that won't necessarily always match, it's better to use Rete, than sequentially match one-by-one. The tree structure with the sharing of nodes for different rules seems to always be a better approach for me, than s

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Mark Proctor
On 24/09/2010 16:18, Leonardo Gomes wrote: Have a look here: http://www.drdobbs.com/184405218 here: http://blog.athico.com/2007/07/sequential-rete.html and here: http://herzberg.ca.sandia.gov/guidelines.shtml The easy answer for your question is "Yes" ;-) It depends :) In general a stateles

Re: [rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Leonardo Gomes
Have a look here: http://www.drdobbs.com/184405218 here: http://blog.athico.com/2007/07/sequential-rete.html and here: http://herzberg.ca.sandia.gov/guidelines.shtml The easy answer for your question is "Yes" ;-) Cheers, Leo. 2010/9/24 Harshit Bapna > Hi All, > > In a scenario where lets say

[rules-users] Is RETE algo optimizes the performance in a stateless session.

2010-09-24 Thread Harshit Bapna
Hi All, In a scenario where lets say 10 rule are to be fired (in any order) in a stateless session than will I get the benefits of RETE algorithm (i.e increased performance). i.e Whether the engine will fire all the ten results in a parallel fashion or Whether the engine will file each rule one by