Charles Whitaker wrote:
Using persistant connections simply means that you will be given a
connection from a pool of open connections rather than creating a new
one each time. There is no guarantee you'll get the same connection
from request to request.
Right. I had assumed that I would get
Charles Whitaker wrote:
Since I'm requesting persistent connections, why don't I get the same
connection each time? Or, to ask it another way: I notice that the
number of threads slowly increases as I continue to access records --
why would this happen if I'm using persistent connections? I
Use persistent connections it's a matter of performance of your script.
When you use persistent connections the next call to mysql_pconnect will
catch a opened connection if available. The mysql_connect command always
open a new connection which slower than get an opened one. Anyway you can't
use