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:01:15
Message-ID: 1082376074.24414.3.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> 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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Cramer 2004-04-19 12:07:44 Re: Horribly slow hash join
Previous Message Michiel Meeuwissen 2004-04-19 11:30:13 order by index, and inheritance