Can DMN have 40K rules

Like to know 40k rules can be added in DMN, will there be performance hit

Hello my dear!

Performance will depend on a number of issues involved.
Imagine that for each instance, the camunda execution engine will have to evaluate 40,000 rules to decide the correct output.

This will certainly impact performance.
Knowing whether it will affect A LOT or A LITTLE will depend on:

  • Processing power of your machine where caunda is installed.

  • Complexity of the rules.

  • Amount of input data for evaluation.

  • Infrastructure.

In many cases, we use DMNs for rule checking, but depending on the project, with giant and complex rules, we choose to use a rules engine such as Drools / FICO, as they have some important customizations. :smile:

Regards.
William Robert Alves

In general, I would not recommend creating huge DMNs. The purpose of DMN is to design rules for humans. I don’t think that a (normal) human can maintain 40k rules. :laughing:

You may consider using a database or something else instead that is built for big data like this.

1 Like