Re: how expensive is mysql_connect in performance
| From: | Paul DuBois | Date: | Sat, 22 Jun 2002 03:04:34 +0000 |
| Subject: | Re: how expensive is mysql_connect in performance | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19991@lists.php.net to get a copy of this message | ||
At 22:39 -0400 6/21/02, Michael Zornek wrote:
I'm just getting into some stuff where I seem to be making a lot of mysql_connect and mysql_close calls. I wonder, how taxing is this on the server?Not very. MySQL's connection-establishment sequence is pretty efficient. mysql_pconnect() by contrast, can use up a lot of connection slots for a busy web site.
Is there any performance test of PHP/MySQL out there I could run on my development or deployment machines? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php