Re: very slow simple query - outer join makes it quicker

From: Rod Taylor <pg(at)rbt(dot)ca>
To: gerard(dot)isdell(at)kinetic(dot)co(dot)uk
Cc: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: very slow simple query - outer join makes it quicker
Date: 2004-04-19 12:36:34
Message-ID: 1082378194.24414.5.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, 2004-04-19 at 08:26, Gerard Isdell wrote:
> Thank, that has worked.
>
> I've been running VACUUM regularly and thought that would have done it.
>
> Obviously the FULL makes a big difference

It shouldn't. That FULL makes a significant difference says that you're
not running regular VACUUM frequently enough and/or your fsm_* settings
are too low.

> -----Original Message-----
> From: Rod Taylor <pg(at)rbt(dot)ca>
> To: gerard(dot)isdell(at)kinetic(dot)co(dot)uk
> Cc: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
> Date: Mon, 19 Apr 2004 08:01:15 -0400
> Subject: Re: [PERFORM] very slow simple query - outer join makes it quicker
>
> > > There are other tables, such as the messages table, that have 10s of
> > > thousands of rows and they return records much more quickly.
> >
> > > There must be something seriously wrong for simple queries like this
> > to take
> > > so long.
> >
> > Have you run VACUUM recently?
> >
> > If not, run VACUUM FULL against the users table and see if that makes a
> > difference.
> >
>
>
> *************************************************************************
> This e-mail and any attachments may contain confidential or privileged
> information. If you are not the intended recipient, please contact the
> sender immediately and do not use, store or disclose their contents.
> Any views expressed are those of the individual sender and not of Kinetic
> Information System Services Limited unless otherwise stated.
>
> www.kinetic.co.uk

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Anjan Dave 2004-04-19 13:52:39 Re: Wierd context-switching issue on Xeon
Previous Message Dave Cramer 2004-04-19 12:32:33 Re: Wierd context-switching issue on Xeon