Re: MySQL close connection, what's the purpose?
| From: | tedd | Date: | Mon, 03 Apr 2006 18:33:01 +0000 |
| Subject: | Re: MySQL close connection, what's the purpose? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233137@lists.php.net to get a copy of this message | ||
chris said:
Just out of interest, could you re-run the test using persistent connections? change mysql_connect to mysql_pconnect..In doing so, the overall results dropped from a tenth of a second difference between both methods to three-one-hundredths of a second difference. In other words, using mysql_pconnect is three times faster for multiple open/closes. However, this only improved the connect/get-data/close sequence. The open once and keep open showed no improvement. Thanks -- does the "persistent connection" thing hold the server up until released? How does that work? tedd -- -------------------------------------------------------------------------------- http://sperling.com