Re: Long running queries and timeouts

Поиск
Список
Период
Сортировка
От Jean-Michel POURE
Тема Re: Long running queries and timeouts
Дата
Msg-id 200201231358.g0NDwML18011@www1.translationforge
обсуждение исходный текст
Ответ на Re: Long running queries and timeouts  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Long running queries and timeouts
Список pgsql-php
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

В списке pgsql-php по дате отправления:

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: "SQL" REPLACE SYNTAX
Следующее
От: Jeff Self
Дата:
Сообщение: Re: Not able to connect to server from PHP