I'm porting an application from php to fastcgi (c). My host runs apache.
Since the fastcgi app would be running in a loop, I could open a mysql connection, and leave it open for all incoming requests. Is this recommended?
I think I've read about an equal number of opinions saying the connection is way more expensive than the request and it should be persistent, and on the other hand people claiming that the open connection is a resource hog and should be closed each time.
Which one of these is correct in my context?