Re: [PHP4BETA] Database Connection Pooling

From: Date: Wed, 01 Mar 2000 15:09:58 +0000
Subject: Re: [PHP4BETA] Database Connection Pooling
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-11258@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > > 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. > Implementing DB Connection Pooling for multi process servers like apache is IMHO out of question. For PHP4 and multithreaded servers like IIS or Apache 2.0, it is much easier to implement. What is basically needed is a global resource list accessible to all threads and some kind of locking. Ideally, to adapt the various db modules, only a different function call would be necessary in the modules connect routine (Could be a define depending on whether compiling PHP multithreaded or not). -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948

« previous php.version4 (#11258) next »