Re: [rules-users] simple rule takes long time

2008-07-02 Thread ygaurav
Hi All I have few changes to my data class as suggested above and rule and it seems to work. But that brings me to another question. Here is my new data class Data class public class Data { private int id =0; public boolean isCheck = false; public

[rules-users] simple rule takes long time

2008-06-30 Thread ygaurav
Hi All I am new to drools and I am trying to see if we can use it. I have a simple file public class Data { private int id =0; public Data(int id) { this.id = id; } public int getId() { return id; } } rule Unique data

Re: [rules-users] simple rule takes long time

2008-06-30 Thread Scott Reed
1) Finding all the duplicate pairs is causing combinatorial explosion. With 3 objects the rule will compare every object against every other object which requires running the run about 450 MILLION times. If you must discover every pair that is a duplicate, then I think you have a hard

Re: [rules-users] simple rule takes long time

2008-06-30 Thread Scott Reed
I forgot the updates and added a couple of $'s (see below). Scott Reed wrote: 1) Finding all the duplicate pairs is causing combinatorial explosion. With 3 objects the rule will compare every object against every other object which requires running the run about 450 MILLION times. If you