note 16521 added to features.persistent-connections
| From: | paul at cnt dot org | Date: | Fri, 02 Nov 2001 22:46:35 +0000 |
| Subject: | note 16521 added to features.persistent-connections | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20318@lists.php.net to get a copy of this message | ||
You need to reuse the persistant connection to see any major gains with
your testing program. I.E. iterate several SELECTs within each connect
block. This will help reveal the true speed differences.
<p>
Not necessarily. The speed gains with persistent connections appear to be only in startup overhead,
not execution. So, you can be smart about it if you are using non-persistent connections by grouping
multiple SQL statements together and sending them to the backend as one, instead of connecting each
time for each execution (assuming of course we are talking about SQL in a single page).
--
http://www.php.net/manual/en/features.persistent-connections.php
http://master.php.net/manage/user-notes.php?action=edit+16521
http://master.php.net/manage/user-notes.php?action=delete+16521
http://master.php.net/manage/user-notes.php?action=reject+16521