On 03/07/2011 01:29 PM, Koen Deforche wrote:
> Hey John,
> 
> 2011/2/25 John Robson <[email protected]>:
>> I created 500 sessions in Wt, and was automatically created 500 sessions
>> of Postgre.
>>
>> After a few minutes all Wt sessions were destroyed, but the sections of
>> Postgre continued.
> 
> How are you seeing that the Postgres sessions continue?

I see using $ htop or $ ps aux | grep postgres

> Do you also delete the Wt::Dbo::backend::Postgres object when your Wt
> session exits?

No, where I use this? in the class destructor?  How?

> You may also want to consider using a Postgres connection pool to
> avoid creating as many connections to the database as you have Dbo
> sessions.

I tried the 'pool', but seems to get slower to create new sections.

#include <Wt/Dbo/FixedSqlConnectionPool>

dbo::SqlConnectionPool *connectionPool_ = new
dbo::FixedSqlConnectionPool(connection_, 5);

> Regards,
> koen
> 


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to