From: Mitch Pirtle <mitch.pirtle@gmail.com>
To: Matthew Terenzio <webmaster@localnotion.com>
Cc: pgsql-php@postgresql.org
Subject: Re: too many clients
Date: Wed, 29 Dec 2004 12:21:20 -0500
Message-ID: <330532b604122909216fccf38c@mail.gmail.com> (raw)
In-Reply-To: <C85319E3-59BC-11D9-B3B3-0003938BDF32@localnotion.com>
References: <0DC9A380-59AB-11D9-B3B3-0003938BDF32@localnotion.com>
<330532b604122908387f7ffde2@mail.gmail.com>
<C85319E3-59BC-11D9-B3B3-0003938BDF32@localnotion.com>
On Wed, 29 Dec 2004 12:12:13 -0500, Matthew Terenzio
<webmaster@localnotion.com> wrote:
>
> On Dec 29, 2004, at 11:38 AM, Mitch Pirtle wrote:
>
> I don't exactly understand the technical difference between pooled
> connections and persistent ones.
>
> pg_pconnect() is grabbing an existing open connection if one is
> available.
It is, but I am told that it is not really very efficient, and so
pg_connect will actually give you better performance on heavy-load
sites. Again, I've heard this but cannot substantiate.
> How is a connection pool more efficient in doing something along these
> lines?
The pool is specifically designed to do just that - manage connections
and keep existing ones maintained - so it is lightweight and fast.
You can get more info here:
http://sqlrelay.sourceforge.net/sqlrelay/faq.html
I've used it for Oracle-powered sites, as well as putting something
sane between zope/plone and both Oracle and MS SQL.
-- Mitch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: mitch.pirtle@gmail.com, webmaster@localnotion.com
Subject: Re: too many clients
In-Reply-To: <330532b604122909216fccf38c@mail.gmail.com>
References: <0DC9A380-59AB-11D9-B3B3-0003938BDF32@localnotion.com> <330532b604122908387f7ffde2@mail.gmail.com> <C85319E3-59BC-11D9-B3B3-0003938BDF32@localnotion.com> <330532b604122909216fccf38c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox