<br><div class="gmail_quote">On Thu, Mar 26, 2009 at 8:35 AM, Dave Gurnell <span dir="ltr"><<a href="mailto:d.j.gurnell@gmail.com">d.j.gurnell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br></div></div>
A single connection will presumably make the site slow under load.<br>
<br>
I think the default non-superuser concurrent connection limit in PostgreSQL is 100. We use the dumb policy of one connection per request (put the connection in a thread-cell and connect/disconnect using dynamic-wind) and we've never hit it. We've run "stress tests" with 50 machines performing >1 request/second. It's not massive by Google's standards but it's more than enough for us.<br>
</blockquote><div><br>Yeah psql's default is 100. It sounds like your production environment has only a single web frontend at this time, is that correct?<br><br>Thanks,<br>yc<br><br></div></div>