Re: CDBI and mod_perl

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

From: Johan Lindstrom
Subject: Re: CDBI and mod_perl
Date: 09:03 on 02 Mar 2005
At 03:54 2005-03-02, Matt S Trout wrote:
> > 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.

But for example dedicated Oracle connections require huge amounts of memory 
in comparison. If the number grows beyond a certain point you need to 
switch to shared connections (MTS), and that's generally considered 
something to avoid (it fragments some of the logging information among 
other things, which makes the SQL harder to profile).

So sometimes it's important to keep the number of connections down, 
sometimes it's not.


/J

-------- ------ ---- --- -- --  --  -     -     -        -          -
Johan Lindström    Sourcerer @ Boss Casinos   johanl AT DarSerMan.com

Latest bookmark: "TCP Connection Passing"
http://tcpcp.sourceforge.net/
dmoz: /Computers/Programming/Languages/JavaScript/ 12

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