Re: [rules-users] Strange Performance Problem in Rules

2010-10-20 Thread ravibhatt
i tried with ProcessResult( $id1 : id,... ) ProcessResult( id > $id1,...) by having an id in my ProcessResult. It still does not work. :-( it takes forever to insert records. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Strange-Performance-Proble

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread Wolfgang Laun
On 19 October 2010 15:02, ravibhatt wrote: > > Thomas, > > For testing purposes, i am inserting only 5 rules, 2 ProcessResult Objects > and 2 ProcessData Objects. > With two ProcessResult objects, this $processResult1:ProcessResult( inputSource == "table1",... ) $processResult2:ProcessRes

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread ravibhatt
Thomas, For testing purposes, i am inserting only 5 rules, 2 ProcessResult Objects and 2 ProcessData Objects. When i use a rule that does not use hardcoded "table1", it inserts first 1 ProcessData objects fairly quickly, for next 1 it is taking forever. Like in 30 mins its able to i

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread Swindells, Thomas
of rule.inputSource. Thomas > -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of ravibhatt > Sent: 19 October 2010 13:24 > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] Strange Performa

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread ravibhatt
Hi Wolfgang Laun-2, i continue to have problems with performance of this rule. I made few more observations: if i write the rule like this (notice hardcoded tbale name in input source comparision), it runs fast. $project:Project(status==Status.DATA_FETCHED) $rule:Rule(

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread ravibhatt
it turns out that inputSource memberOf $rule.inputTableList is the problem. My Rule contains a list of input tables, and if i use inputSource == "tablename"; this works much much faster. is there any other way to check if one objects value is in other object? And because of the order of object

Re: [rules-users] Strange Performance Problem in Rules

2010-10-19 Thread ravibhatt
Thanks for your prompt reply. Even if i remove those extra conditions it still takes a lot of time given the fact that i have only 2 facts. my getValue() maintains a hashmap and it returns values from the map. So it should be fast. I tried removing equalsIgnoreCase and its still the same.

Re: [rules-users] Strange Performance Problem in Rules

2010-10-18 Thread Wolfgang Laun
One simple observation: $processResult2 : ProcessResult(... inputSource != $processResult1.inputSource, this != $processresult1,... ) The test using this is redundant, since different inputSource implies that the containing object is not identical. Anothe

[rules-users] Strange Performance Problem in Rules

2010-10-18 Thread ravibhatt
Hi all, I have a rule that looks like below: Rule "CheckSomeConditionRule" When $project:Project(status==STATUS_ENUM.DATA_FETCHED) $rule:Rule(name=="CheckSomeConditionRule") $processResult1:ProcessResult(projectId==$project.id, inputSource memberOf $rule.inputTableList ,