[rules-users] Fwd: Knowledge base cache

Raja Sekhar raja.amirapu at gmail.com
Fri Feb 28 06:28:50 EST 2014


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.amirapu at gmail.com> wrote:

> Ok let me send the statistics.
>
>
> On 28 February 2014 15:21, Michael Anstis <michael.anstis at 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.amirapu at gmail.com> wrote:
>>
>>> Hi
>>> Can someone answer this
>>> Thanks & Regards,
>>> Raj
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Raja Sekhar <raja.amirapu at gmail.com>
>>> Date: 28 February 2014 14:10
>>> Subject: Knowledge base cache
>>> To: Rules Users List <rules-users at 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 at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140228/d62845e8/attachment.html 


More information about the rules-users mailing list