Re: php and connection - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: php and connection
Date
Msg-id 1277923405.20538.2771.camel@jd-desktop.iso-8859-1.charter.com
Whole thread Raw
In response to php and connection  (Szymon Guz <mabewlun@gmail.com>)
List pgsql-general
On Wed, 2010-06-30 at 20:42 +0200, Szymon Guz wrote:
> Hi,
> in a PHP application working on Postgres normally the new connection
> to the database is made per request.
>
>
> This can potentially cause too big overhead, so I've got some
> questions:
>
>
> - is the overhead really noticeable?

It can be.

> - could this be solved using persistent connections, or the persistent
> connections in php and postgres don't work properly?

Don't use them.

> - could this be solved using something like pgpool?
>
Yes, using a connection pooler will solve the problem. I prefer
pgbouncer.

Joshua D. Drake


>
> regards
> Szymon

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering


pgsql-general by date:

Previous
From: Howard Rogers
Date:
Subject: Re: DBI::Oracle problems
Next
From: Zoid
Date:
Subject: Re: LINE 1: IDENTIFY_SYSTEM error infinitum