Drools Rule execution delays the first time after updating rules

Viewed 185

In Drools v7.32.0.Final, the first time a KieSession of a KieBase fires the rules when the program starts, or whenever a new jar is deployed, execution time of rules is approximately 5 times more than the average time later on. I have seen posts referring to v6.x with the same problem, suggesting to do a dummy execution of rules, because the problem is indexing. I have done dummy executions, passing in drools all the objects that i am currently using with empty fields and the only improvement i got is to go to 4 times slower.

Can anyone suggest a solution? If the problem is indexing as mentioned, is there a way to force KieBases to index before executing any rules?

0 Answers
Related