Re: slow query

Поиск
Список
Период
Сортировка
От Nis Jørgensen
Тема Re: slow query
Дата
Msg-id f6au3g$f0e$1@sea.gmane.org
обсуждение исходный текст
Ответ на slow query  ("Vidhya Bondre" <meetvbondre@gmail.com>)
Список pgsql-performance
Vidhya Bondre skrev:

> Hi all,
>
>    I need a very urgent help from you all in below case.
>
>    I have a query

[snipped]

> after vacuuming the db it has become very very slow ... 100 times slow.
>
> Please suggest ?

Suggestions for getting more/better responses:

- Format your query nicely before posting it.
- Post the relevant table definitions, including indices
- Tell us what the query is supposed to do.

Suggestions for finding the cause of your problem:

- Run "EXPLAIN ANALYZE" on the query.
- Try to "remove bits" of the query to see which bits slow it down - try
to find a "minimal query" which shows the performance problem. If you
can, use the output of "EXPLAIN ANALYZE" obtained above. For instance,
all the SUMs in the SELECT clause are unlikely to significantly affect
the running time.
- Run "EXPLAIN ANALYZE" on the "minimal query", post the results.

Nis

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

Предыдущее
От: "Vidhya Bondre"
Дата:
Сообщение: slow query
Следующее
От: Greg Smith
Дата:
Сообщение: Re: PostgreSQL 8.0 occasionally slow down