Hello,
I have a list of very similar rules executed in Drools and some performance problems appear ... I want some advices to choose between two "direction" in order to correct them ...
First the context :
I have to execute always the same check but with different level or "parameters".
For example,
- in the first demand (rule for our client) i have to count and retrieve the list all Article that have a family code equals to 'A', 'B' or 'C' and execute the then clause only if there is 3 elements in the filtered list.
- in the second demand (rule for our client) i have to count and retrieve
the list all Article that have a family code equals to 'B' or 'C'
and execute the then clause only if there is 4 elements in the filtered
list
and so on ...