[rules-users] Fwd: Knowledge base cache

Wolfgang Laun wolfgang.laun at gmail.com
Fri Feb 28 06:51:04 EST 2014


Your emails are pointless. What do you expect as an answer from
someone who sees this for loop?

The time required for insertion depends on number and complexity of
your rules' left hand sides.

The time required for execution depends on the number of firing rules
and the complexity of their right hand sides.

-W

On 28/02/2014, Raja Sekhar <raja.amirapu at gmail.com> wrote:
> 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"
>


More information about the rules-users mailing list