perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: what is correct way to use mod_perl2, Apache2, and DBI?
Date Mon, 01 May 2006 22:19:10 GMT
On Mon, 2006-05-01 at 18:14 -0400, Jonathan Vanasco wrote:
> once apache::DBI is loaded, it  
> caches all connections - so you'll probably get worse performance  
> with every request sharing 1 connection, than with every request  
> making/breaking a new request.  you want to make sure that you load  
> Apache::DBI in startup.pl, but that you don't make any connections  
> until you're in an apache request.

No, Apache::DBI will not cache connections made during startup.  Trying
to share a connection made during startup would lead to worse things
than bad performance: segfaults and strange, apparently random DBI
errors.

- Perrin


Mime
View raw message