#40040 [Bgs]: release persistant mysql connection back to pool
| From: | php at rebel dot com dot au | Date: | Sun, 07 Jan 2007 02:52:29 +0000 |
| Subject: | #40040 [Bgs]: release persistant mysql connection back to pool | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107255@lists.php.net to get a copy of this message | ||
ID: 40040
User updated by: php at rebel dot com dot au
Reported By: php at rebel dot com dot au
Status: Bogus
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.4.4
New Comment:
ok thanks for the clarification.
Perhaps the feature request should be to create a common pool of
connections and then implement this suggestion.
Previous Comments:
------------------------------------------------------------------------
[2007-01-06 16:05:32] johannes@php.net
There is no global resource pool, the persistent resources can only be
reused by the same child.
------------------------------------------------------------------------
[2007-01-06 04:00:34] php at rebel dot com dot au
Description:
------------
It would be nice if a function could be added to the sql functions
allowing a persistant connection to be returned to the connection pool,
for reuse by other scripts.
This would be most useful in a very busy server where milliseconds
count.
eg:
<?
$connection = mysql_pconnect(...);
do mysql stuff
mysql_prelease($connection);
do other perhaps time consuming stuff
?>
Reproduce code:
---------------
not reproduceable - feature request
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40040&edit=1