Re: strange behaviour of mysql_pconnect()

From: Date: Tue, 22 Jan 2002 16:44:46 +0000
Subject: Re: strange behaviour of mysql_pconnect()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-81571@lists.php.net to get a copy of this message
Hi Shane, > Actually, I'd be interested to know why the same connection is used for two > connections to the same database? > I'm guessing people could fall over this trying to do, say, unbuffered > queries through one to fetch a huge result set, and normal queries through > another to make changes.... nope... as i've said before, this is only a testing script, not a real one. I come across this testing when discussing about how many same persistent connection can be opened to mysql. I believe there will always be exactly only one same connection (same connection = same host and same username), regardless of using connect() or pconnect(). but then someone make a small testing, by doing 2 same pconnect() and printing the returned link_identifier, which surprisingly return 2 different id. -- Jimmy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There is no greater waste as a waste of time

« previous php.general (#81571) next »