Hi When i trying to insert 1000 facts using kession.insert it takes 2147ms. Rules firing on this takes just 62ms
Can you suggest me on this for(Product prd:arrlist) { //ksession.insert(prd); ksession.insert(prd); } On 28 February 2014 15:29, Raja Sekhar <raja.amir...@gmail.com> wrote: > Ok let me send the statistics. > > > On 28 February 2014 15:21, Michael Anstis <michael.ans...@gmail.com>wrote: > >> How do you know where the bottle-neck is? >> >> What are the relative times to:- >> (1) Read from the database >> (2) Instantiate objects >> (3) Instantiate KnowledgeBase >> >> >> >> On 28 February 2014 09:47, Raja Sekhar <raja.amir...@gmail.com> wrote: >> >>> Hi >>> Can someone answer this >>> Thanks & Regards, >>> Raj >>> >>> >>> ---------- Forwarded message ---------- >>> From: Raja Sekhar <raja.amir...@gmail.com> >>> Date: 28 February 2014 14:10 >>> Subject: Knowledge base cache >>> To: Rules Users List <rules-users@lists.jboss.org> >>> >>> >>> Hi, >>> During processing a 100 thousand facts read from a database. We are >>> measuring performance by using java's time.Some times i see a sudden rise >>> in the times. >>> It is a good solution to cache the knowledgebase.I am using >>> the StatefulKnowledgeSession. >>> >>> Regards, >>> Raja Sekhar Amirapu >>> ------------------------------------------------------ >>> >>> >>> >>> >>> -- >>> Raja Sekhar Amirapu >>> ------------------------------------------------------ >>> "If any anyone can do it, i can do it. If no one else can do it, i must >>> do it" >>> >>> _______________________________________________ >>> rules-users mailing list >>> rules-users@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >> >> >> _______________________________________________ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> > > > > -- > Raja Sekhar Amirapu > ------------------------------------------------------ > "If any anyone can do it, i can do it. If no one else can do it, i must do > it" > -- Raja Sekhar Amirapu ------------------------------------------------------ "If any anyone can do it, i can do it. If no one else can do it, i must do it"
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users