From: Jean-Michel POURE <jm.poure@freesurf.fr>
To: Josh Berkus <josh@agliodbs.com>
To: Francisco Reyes <lists@natserv.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Long running queries and timeouts
Date: Wed, 23 Jan 2002 14:58:21 +0100
Message-ID: <200201231358.g0NDwML18011@www1.translationforge> (raw)
In-Reply-To: <web-673007@davinci.ethosmedia.com>
References: <web-673007@davinci.ethosmedia.com>
Le Mardi 22 Janvier 2002 16:52, Josh Berkus a écrit :
> Actually, my web developer and I talked about the programming necessary
> to do this, and decided that it was easier to break up the
> long-running function into 3 smaller functions.
Are you connecting from Netscape? I noticed long queries timeouted in
Netscape. This is because Nescape waits for the entire content of a page
before displaying it.
On the converse, when connecting from $M Internet Explorer, just echo a
message like "Please wait during processing." and then "." everytime you run
a query. IE refreshes content and there is no timeout.
Also, it is possible to set timeout time in /etc/php.ini. Set a high value
like 600 seconds. Then you also need to allow more connections to PostgreSQL
backend as described in this very interesting article :
http://www.phpbuilder.com/columns/smith20010821.php3?page=2.
PostgreSQL can run very fast when well-optimized. You probably need to
optimize the source code of queries themselves, probably writing some good
PL/pgSQL server side code. If you need a GUI to do so, download and install
Dave Page's excellent tool http://pgadmin.postgresql.org
Cheers,
Jean-Michel POURE
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: jm.poure@freesurf.fr, josh@agliodbs.com, lists@natserv.com
Subject: Re: Long running queries and timeouts
In-Reply-To: <200201231358.g0NDwML18011@www1.translationforge>
References: <web-673007@davinci.ethosmedia.com> <200201231358.g0NDwML18011@www1.translationforge>
* 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