[rules-users] simple rule takes long time

ygaurav ygaurav at yahoo.com
Mon Jun 30 05:47:06 EDT 2008


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"
    when
        data : Data()
        old : Data(this != data, this.id == data.id)
    then 
        log.log("Following data are not unique: " + data.getId() + " and " +
old.getId());
end


When I try to load 30,000 of data in memory it takes long time ( around 12
hours )  Can anybody suggests a better way of doing it. 


Thanks
Gaurav
-- 
View this message in context: http://www.nabble.com/simple-rule-takes-long-time-tp18192098p18192098.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list