ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Prudzilko <aprud...@welho.com>
Subject Re: Connection session bound
Date Sat, 16 Dec 2006 20:39:53 GMT
Yeah I agree, it was more about choosing the best practice. From my 
experience it saves a lot of refactoring if you do it right in the first 
place :-D
I guess I leave it for now as is, and see what happens in production.

Thanks,

- Andreas
> If you are using a pool, it would give almost no benefit, IMO.
>
> Try it simple, if you have problems, optimize them later - premature
> optimization is the root of many evils. ;-)
>
> Larry
>
>
> On 12/16/06, Andreas Prudzilko <aprudzil@welho.com> wrote:
>>
>>  Hi Brandon,
>>
>>  well i was just reading some hibernate tutorials and there were some
>> thought about binding a db connection at least to a http request to gain
>> more performance.
>>  Now im writing an ajax webapplication, so i have a lot of tiny http
>> requests. So binding the db connection there wouldn't make much 
>> sense. So I
>> thought, if its beneficial I would prefer binding it to a http sessions.
>>  Well might be of course total bogus :-D. To be honest I'm not even 
>> sure how
>> the performance would improve especially since there is a connection 
>> pooling
>> to begin with.
>>
>>  Any remarks on my thoughts?
>>
>>  - Andreas
>>
>>
>> I can't imagine a situation where I would tie a connection to an
>> HttpSession. What is causing you to consider this? If you can provide 
>> some
>> insight as to why you would want to do this we can provide more pointed
>> advice.
>>
>>  Brandon
>>
>>
>> On 12/16/06, Andreas Prudzilko <aprudzil@welho.com> wrote:
>> > Hi,
>> >
>> > i was wondering about the connection pooling in ibatis. Is it possible
>> > to bind a connection to a httpsession?
>> > Or are there any pros and cons to do it?
>> >
>> > - Andreas
>> >
>> >
>> >
>>
>>
>>
>


Mime
View raw message