perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: Migrating from MySQL to PostGres -- Any mod_perl specific things I should be wary of?
Date Fri, 10 Mar 2006 21:20:56 GMT
On Fri, 2006-03-10 at 13:13 -0800, David Wheeler wrote:
> The only one I can think of (and my information might be severely out- 
> of-date) is that you can open a MySQL connection before Apache forks  
> and have it still work in the children

I'm not sure where you got this idea, but don't do it.  I've seen lots
of people have bugs caused by this on the Catalyst and Class::DBI lists.
If you open database connections during startup, close them before
forking.

- Perrin


Mime
View raw message