[rules-users] Reuse statless session

Leonardo Gomes leonardo.f.gomes at gmail.com
Wed Oct 27 11:12:48 EDT 2010


*As a rule of thumb, I would say, cache knowledge bases, but throw away
sessions. Session creation is meant to be fast.

I'm talking about stateless session here :)

On Wed, Oct 27, 2010 at 5:11 PM, Leonardo Gomes
<leonardo.f.gomes at gmail.com>wrote:

> I might be wrong, but I believe the optimization he's talking about is the
> sequential mode.
>
> Coming back to the original problem in this thread, I'm amazed that you
> have 30% of your time linked to the newStatelessSession for a cached
> KnowledgeBase! Loading of classes as the explanation for this also sounds
> weird... do you spend a lot of time with not using any session so that the
> classes get unloaded?
>
> As a rule of thumb, I would say, cache knowledge bases, but throw away
> sessions. Session creation is meant to be fast.
>
> Leo.
>
>
>
> On Wed, Oct 27, 2010 at 3:00 PM, Bruno Freudensprung <
> bruno.freudensprung at temis.com> wrote:
>
>>
>> You are right; so far (still haven't finished reading the book) it is
>> unclear whether the stateless session really implements some kind of
>> optimization.
>>
>> Bruno.
>>
>> Wolfgang Laun a écrit :
>> > Ha!
>> > I've been trying to find out about exactly this reputed distinction
>> between
>> > stateful and stateless sessions, NOT to be confused with "sequential
>> mode",
>> > which does introduce optimizations.
>> >
>> > No success so far.
>> >
>> > -W
>> >
>> >
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101027/7ce3505e/attachment.html 


More information about the rules-users mailing list