I am in the process of building another website on dreamhost and am trying to make sure that the site is fairly optimized because as I expand I want to make sure that I don’t cause an problems on the server I’m on for me or other customers.
One of the things I have read is that establishing MySQL connections is very expensive in terms of processor usage, especially when compared to using an already established connection.
After reading this, I found out about persistant MySQL connections on php.net. However, I then found out that doesn’t work with PHP installed as a CGI wrapper. Looking around dreamhost’s website and PHP information it seems like PHP is setup as CGI. Which means that persistent connections wouldn’t work. I was wondering if anyone can confirm this information or not, and maybe give some suggestions if I can’t use persistent connections.