DB connections manager in MPM mod_perl

2005-11-04 Thread Taras Yurij Vasylovitch
Hi all. My project is built on Apache+mod_perl2 + PostgreSQL, so I use DBI::Pg to connect to database and Apache::DBI for connection reuse. My DBI connections are initialized at ChildInit phase. I examined Apache::DBI sources and found that it creates one connection per dsn (am i right?)

Re: DB connections manager in MPM mod_perl

2005-11-04 Thread Perrin Harkins
On Fri, 2005-11-04 at 17:43 +0200, Taras Yurij Vasylovitch wrote: I've tried to write my own db connections factory but I found out that DBI connections cannot be shared between threads because they are objects. This could be changed, but it would require some work. Hardly anyone actually