On Jun 29, 2006, at 3:37 AM, Antonis Christofides wrote:
The benefit of this solution is that I avoid reconnecting to the database on each request, having instead a persistent connection as user "postgres".
But it is also a resource liability. How do you know if the user will make another request or when they are "finished" using your site? You can certainly time out the connection but for a busy site you will potentially be holding open a large number of connections that will never be used again.
I agree with your reasons for wanting to do this, but it may not be feasible for a busy web site.
John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly