|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-01 23:45 UTC] jani@php.net
-Package: Feature/Change Request
+Package: MySQL related
[2011-01-06 16:06 UTC] uw@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: mysql
[2011-01-06 16:06 UTC] uw@php.net
[2011-01-09 11:59 UTC] ninzya at inbox dot lv
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
Description: ------------ It would be great if we had mysql_connection_reused( $link) function, which returned boolean value if just established connection was reused or no. Reproduce code: --------------- $link =mysql_pconnect( $host .':' .$port, $user, $pass); if( !mysql_connection_reused( $link)) { mysql_query( 'SET NAMES utf8;'); mysql_query( 'USE mydb;'); } else { // connection was reused, don't do any initialization queries, // because they were already made by another request } Expected result: ---------------- This would allow to optimize database load on heavy loaded servers. Actual result: -------------- Not implemented