Re: mod_fast_apache, FastCGI, and mysqli

From: Date: Wed, 07 Feb 2007 04:36:39 +0000
Subject: Re: mod_fast_apache, FastCGI, and mysqli
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-27870@lists.php.net to get a copy of this message
steve wrote:
Oh, and allow persistent connections in db apis again (like mysqli).
It might happen. Wez Furlong was contemplating a persistent connection implementation for the generic PDO interface following on from the persistent connection model in the oci8 extension for Oracle.
As an example, lets suppose an example with 2000 connections, using keep-alive, with 20 connections downloading static content and 50 downloading dynamic (PHP) content. In Apache 1.3, you would have to accommodate 2000 processes (either changing the hard limit, or using multiple servers). If you used persistent connections that would be 2000 (almost all idle) connections to mysql. (In the real world this is why you would either disable persistent connections or keep-alive, and most likely both.)
The oci8 extension lets you timeout idle persistent connections. Unrelated to your FastCGI suggestion but FYI on database connection pooling: http://blogs.oracle.com/opal/2007/01/03. The pooling described has no dependency on how you deploy your application and works across multiple application types connecting to the DB. Chris -- Christopher Jones, Oracle Email: Christopher.Jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/

« previous php.internals (#27870) next »