[eluser]tokyotoejam[/eluser]
Ok. I am building a social network site which is almost in beta. The profile page for example runs queries to grab comments, blogs, top friends, profile pic, etc. Thats several good queries for just one page.
I have DB connecting automatically in config.
So here is the question.
Does the db connect only once per start of page, run all queries, and then close once page is processed OR does the DB connect each time I do a $this->db-get(),insert,yada yada and close at the end of each method call resulting in 5 or 6 connections per page?
What is the recommended way of doing this per page, so that if the website get hit BIG time it will handle it?