Re: Slow Query

Поиск
Список
Период
Сортировка
От Shawn
Тема Re: Slow Query
Дата
Msg-id 20070903091558.0780b963@boffin.xmtservices.net
обсуждение исходный текст
Ответ на Re: Slow Query  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Slow Query  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-performance

Thanks Kevin,

This one initially added about 10sec to the run but I added a HASH
index on the alias field and its now about 5 sec average runtime, a net
improvement.

Shawn

 On Sun, 02 Sep 2007 10:49:09 -0500 "Kevin Grittner"
<Kevin.Grittner@wicourts.gov> wrote:

> >>> On Sat, Sep 1, 2007 at 12:29 PM, in message
> <20070901102947.0c0a50a3@boffin.xmtservices.net>, Shawn
> <postgres@xmtservices.net> wrote:
> > update shawns_data set alias = null;
> > Even after VACUUM this simple line takes 35 sec to complete.
>
> Would any rows already have a null alias when you run this?
>
> If so, try adding 'where alias is not null' to the query.
>
> -Kevin
>
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 2: Don't 'kill -9' the
> postmaster
>

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Slow Query
Следующее
От: Shawn
Дата:
Сообщение: Re: Slow Query