Skip to content

Workflow Evaluation is very slow #513

Closed

Description

@MithunChopda

Hi Team,

I am evaluating this RulesEngine for a solution that requires evaluating rules for data filtering.
I have a workflow with 13 rules. If any of the Rules evaluates to True, I want to include the record for display.
When executing this workflow with 13 rules for 600 records, the whole execution takes 13 seconds.
This is very very slow and I am trying to understand what could be causing this slowness?
Is it because all 13 rules are being evaluated or will the Rules Evaluation be short circuited the moment any of the rule evaluates to true and skip evaluating other rules?

Activity

  1. abbasc52 commented on Aug 11, 2023

    @abbasc52

    Hi MithunChopda can you please share sample code to reproduce this issue?

  2. cristiangce commented on Sep 4, 2023

    @cristiangce

    Hola, yo tengo un problema similar de lentitud pero en un escenario diferente.
    Tengo un flujo con un número X de reglas que se demora 6s en ejecutar 72 registros, si a una de estas reglas le agrego subreglas el tiempo casi no se ve afectado pero si las mismas subreglas las creo como parte de una nueva regla, el tiempo aumenta y ahora ya demora 8segundos..
    hay alguna explicación para esto?

  3. WynBoon commented on Feb 15, 2025

    @WynBoon

    Hello all.

    I am experiencing a similar issue. My issue is that when I ExecuteAllRulesAsync it takes in excess of 10 seconds to run the rule. I acknowledge that there are a lot of rules that I am passing through to the workflow rule list (+-100). My question is that from what I can tell the engine is caching the rules, are there tricks to improving performance or should I scale up the server? If I scale up the server is it memory that it needs or CPU too?

    Thanks to all, I am loving working with this.

  4. YogeshPraj commented on May 30, 2026

    @YogeshPraj
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions