rules-users - fireAllRules performance

by sjoo822on 2010-07-29T15:36:52+00:00

I have several thousand objects that gets inserted into a statefull knowledge
session as show below:
for (Item item : itemList)
{
session.insert(item);
}
session.fireAllRules();
Assuming that all the conditions in the rules only concern with one item at
a time, will there be a big performance difference if I changed the above to
as shown below?
for (Item item : itemList)
{
session.insert(item);
session.fireAllRules();
}

Re: rules-users - fireAllRules performance

by Michael Rhodenon 2010-07-30T10:00:35+00:00.
Probably not, work is done on insert not fire. Fire just shows what is
on the agenda.
-Michael
>