Re: Apache pre-forking

[prev] [thread] [next] [Date index for 2004/08/02]

From: Perrin Harkins
Subject: Re: Apache pre-forking
Date: 17:47 on 02 Aug 2004
On Mon, 2004-08-02 at 11:35, Tony Bowden wrote:
> So, IIUC
>  - It's a good idea to pre-load modules in your Apache startup
>  - It's a bad idea to have database connections as part of these
> 
> So how do people marry these two concepts if they're being sufficiently
> lazy to use a driver specific Class::DBI subclass that sets up the
> column info etc at compile time by accessing the database?

If you use a recent DBI, connect_cached will use Apache::DBI to do the
work.  Apache::DBI doesn't cache connections during startup.  The result
is that your connection will be closed after setting up the table and
then reopened after the fork.  Provided your DBD is well-behaved, it
should work fine.  You can turn on Apache::DBI debugging if you want to
make sure the connections are being handled correctly.

- Perrin

Apache pre-forking
Tony Bowden 15:35 on 02 Aug 2004

Re: Apache pre-forking
Simon Wilcox 15:43 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:17 on 02 Aug 2004

Re: Apache pre-forking
Stuart Johnston 16:16 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:47 on 02 Aug 2004

Re: Apache pre-forking
Tim Bunce 21:19 on 02 Aug 2004

Re: Apache pre-forking
Perrin Harkins 21:50 on 02 Aug 2004

Re: Apache pre-forking
jason scott gessner 00:06 on 03 Aug 2004

Re: Apache pre-forking
Perrin Harkins 17:33 on 03 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52