[rules-users] one question about asserting facts

Senlin Liang senlin.liang at gmail.com
Thu Feb 5 15:05:31 EST 2009


Hi all,

I am trying to assert (or insert) a large number of facts (or
DataClass objects) in to a session, what i am doing right now is to
insert them one by one as
---------------------
           while (line != null) {
               str = bufRead.readLine();
               session.insert(new DataClass(line, str));
               line = bufRead.readLine();
           }
---------------------

My question: is there an efficient way to insert all facts at once, so
that it takes less time?

Thanks,
Senlin



More information about the rules-users mailing list