![]() |
mysql_connect VS. mysql_pconnect
mysql_connect VS. mysql_pconnect
Well, this should say enough. Which is better? I use pconnect AND connect in the same function. You can define to use it in my inc.connect.php function. Simply set TRUE to use it. Now the question is, is it safer, faster, smarter, lighter... what is the advantage for real? If you guys can tell me, thanks. :) Mark |
Yeah I'd like to know this also, because I've never used it and people are starting to use it.
|
From the php site:
Quote:
|
I know enough, thanks!
|
"The mysql_pconnect() function was designed to provide a mechanism for reducing the cost of establishing and closing connections to the MySQL server. Unfortunately, due to an interaction between the architecture of the Apache server and the architecture of PHP, high traffic on a site that used pconnects could quickly clog up the MySQL server with many unused connections that could prevent many of the active connections from accessing the database." Zak Greant
|
i think pconnect is better for big soks
|
| All times are GMT. The time now is 09:00 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0