isaac_cm Posted October 26, 2006 Share Posted October 26, 2006 I am using this command to connect to my databasemysql_pconnect($hostname_mainsqldb, $username_mainsqldb, $password_mainsqldb) or trigger_error(mysql_error(),E_USER_ERROR); is it right to use single connection all over th site or I have to make multiconnections to achieve best speedthanks Quote Link to comment https://forums.phpfreaks.com/topic/25215-connection-optimization/ Share on other sites More sharing options...
fenway Posted October 28, 2006 Share Posted October 28, 2006 I'm not sure what you mean by "all over the site", but one connection per page should be sufficient. Then again, I'm not sure if persistent connections are really desirable. Quote Link to comment https://forums.phpfreaks.com/topic/25215-connection-optimization/#findComment-115870 Share on other sites More sharing options...
isaac_cm Posted November 16, 2006 Author Share Posted November 16, 2006 thanks, I totaly forget to see this post I am also a windows programmer so I just worried about the speed of fetching data from the database specially when large number of peoplr is visiting my sitethanks again Quote Link to comment https://forums.phpfreaks.com/topic/25215-connection-optimization/#findComment-125505 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.