Re: Slow Query

From: Shawn <postgres(at)xmtservices(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow Query
Date: 2007-09-03 16:15:58
Message-ID: 20070903091558.0780b963@boffin.xmtservices.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Grittner(at)wicourts(dot)gov> wrote:

> >>> On Sat, Sep 1, 2007 at 12:29 PM, in message
> <20070901102947(dot)0c0a50a3(at)boffin(dot)xmtservices(dot)net>, Shawn
> <postgres(at)xmtservices(dot)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
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Shawn 2007-09-03 16:57:49 Re: Slow Query
Previous Message Kevin Grittner 2007-09-02 15:49:09 Re: Slow Query