[rules-users] Question about fireAllRules method

sjoo822 sean.joo at gmail.com
Tue Jul 27 11:36:04 EDT 2010


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();
          }



-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-fireAllRules-method-tp999660p999660.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list