mysql_connect VS mysql_pconnect
Posted
by rogeriopvl
on Stack Overflow
See other posts from Stack Overflow
or by rogeriopvl
Published on 2008-10-29T18:06:18Z
Indexed on
2010/04/28
15:53 UTC
Read the original article
Hit count: 165
I have this doubt, I've searched the web and the answers seem to be diversified. Is it better to use mysql_pconnect over mysql_connect when connecting to a database via PHP? I read that pconnect scales much better, but on the other hand, being a persistent connection... having 10 000 connections at the same time, all persistent, doesn't seem scalable to me.
Thanks in advance.
© Stack Overflow or respective owner