Re: [PHP4BETA] Database Connection Pooling
| From: | Andrei Zmievski | Date: | Wed, 01 Mar 2000 14:16:21 +0000 |
| Subject: | Re: [PHP4BETA] Database Connection Pooling | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11251@lists.php.net to get a copy of this message | ||
On Tue, 29 Feb 2000, Manuel Lemos wrote:
> Hello Alessandro,
>
> On 28-Feb-00 16:20:24, you wrote:
>
> >I'd like to know if anyone have plans to code a Database Connection
> >Pooling module to PHP.
>
> Gee, AFAIK that exists from a very long time ago, except that it is called
> persistent connections. Look in the manual for connection establishment functions
> and their persistent counterparts like mysql_connect and mysql_pconnect,
> OCINLogon and OCIPLogon, etc...
>
> AFAIK all supported databases have functions to establish persistent
> connections. They work on a per server process basis. That means
> persistent connections are kept until a server process lives, and
> each server process manages their own pool of persistent connections.
Manuel,
Assumption is the mother of all screw-ups. While PHP does support
persistent connections, those are per Apache process. What it needs is
a common connection pool for all Apache processes.
-Andrei
Complexity in the mind is not caused by learning;
learning is caused by complexity in the mind.
-- Steven Pinker