Re: CDBI and mod_perl

[prev] [thread] [next] [Date index for 2005/03/02]

From: Matt S Trout
Subject: Re: CDBI and mod_perl
Date: 02:54 on 02 Mar 2005
On Wed, Feb 23, 2005 at 01:50:11PM -0500, Perrin Harkins wrote:
> On Wed, 2005-02-23 at 17:34 +0000, Addison, Mark wrote:
> > I still can't see why you would want to share the dbh
> > between the 2. It sounds down right dangerous to me!
> > What is wrong with letting the 2 sets of code manage their own
> > handles?
> 
> Very simple: it will kill the scalability of my application to have
> twice as many connections to the database open per apache child process.

I sincerely doubt you'll find this to be the case; an idling database
connection shouldn't require noticeable amounts of resources. For example,
MySQL AFAIK only maintains a small buffer per connection plus some tracking
info and everything else is shared.

If this isn't the case I'd be fascinated to see some figures to the contrary.

        -- 
            Matt S Trout            Brag sheet:    http://trout.me.uk/services.html
LAMP, Infrastructure        Contact:       services@xxxxx.xx.xx
   and Automation
     specialist                                       Do it once. Do it right.

RE: CDBI and mod_perl
Addison, Mark 17:34 on 23 Feb 2005

RE: CDBI and mod_perl
Perrin Harkins 18:50 on 23 Feb 2005

Re: CDBI and mod_perl
Matt S Trout 02:54 on 02 Mar 2005

Re: CDBI and mod_perl
Perrin Harkins 05:20 on 02 Mar 2005

Re: CDBI and mod_perl
Johan Lindstrom 09:03 on 02 Mar 2005

Generated at 20:58 on 02 Mar 2005 by mariachi v0.52