locked
Loading RuleEngine or Policy object Takes lot of time RRS feed

  • Question

  • Hi,

    I am loading a RuleSet, which has around 100 rules. Some of the conditions are little complex too. I am following 2 ways to load the policy to execute. But, both of them or very very slow. After loading EXECUTE method is very quick. But load is considerable slow like around 15 to 18 seconds.

    Hardly I have 20 policies in the system. I don't think cache setting will help me.

     

     

                1.  Policy policy = new Policy(RuleSetName, MajorVersion, MinorVersion);

         2.  Microsoft.RuleEngine.RuleEngine engine = new RuleEngine(ruleset)

    Thank you in Advance.

     

    Change: This policy/RuleEngine object load takes time only first time.


    Venky Gundlapally
    Thursday, August 11, 2011 2:03 PM

Answers

  • Hi Steef-Jan,

    I have 19 rules in my ruleset. So, I removed all rules and added one by one and loaded the ruleset. Finally, I found 3 rules are making ruleset to take long time to load.

    I digged into the rule, it has 30 nested conditions (with AND OR NOT predicates) in one single rule. That condition is built for business purpose. So, I cannot even suggest them to change condition size.

    Thanks

    Venky

     


    Thanks - Venky Gundlapally
    Friday, August 12, 2011 2:54 PM

All replies