pg_connect time & php speed

admin

Administrator
Staff member
I am running a constantly hit web server using php/apache/postgres. The php pages must be as fast as possiable. I isolated the slowest part to the pg_connect function. When the server begins to get heavily hit the pg_connect funtion begins to take longer and longer to return. Up to 10 seconds during hi times. The php pages need to under half a second. Any thoughts on why pg_connect slows down so much?

For faster php pages I am using apc cache. Are there any other ways to speed up php?
 
Back
Top