Bjoern Eilers

Info required: Performance degradation with many conditions

Discussion created by Bjoern Eilers on May 20, 2009
Latest reply on Jun 8, 2009 by Carole-Ann Matignon



in our Rules Engine we have a lot of rules that are of the form


if ((condition_a_1 or condition_a_2 or ... or condition_a_n) and
    (condition_b_1 or condition_b_2 or ... or condition_b_m) and
    ...) then {
   // action code goes here

Mostly, these conditions are string or integer comparisons.

Now, my question is as follows: how will performance degrade in a worst case scenario where each condition is false? Will runtime increase linear to the number of conditions, or might we expect a non-linear increase (e.g. quadratic increase)?


Also, is there a best practice regarding long lists of conditions? Currently we use providers with a multiplicity of 0/1..n and display them on the same page. Is there another option to quickly allow creating or editing such long lists?


Best regards,



Message Edited by BjoernE on 05-20-2009 03:57 AM