Re: Join query on 1M row table slow

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Join query on 1M row table slow
Date: 2004-02-10 22:46:38
Message-ID: Pine.LNX.4.33.0402101542090.29897-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 10 Feb 2004, CSN wrote:

>
> I disabled enable_hashagg and enable_nestloop. Appears
> to have made both queries worse :(
>

Good, then we know that the nest loop and hash agg are probably good
plans.

>
> How exactly do I do that?
>
> SELECT * from thanks limit 1000
> ;)

it's an alter table thingie:

alter table tablename alter column columnname set statistics 100;

But since it looks like it's picking a good plan, it's probably not a real
big deal.

So, can you get rid of the join / in on the other table, or do you need
it there?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2004-02-10 22:48:50 Re: DB cache size strategies
Previous Message CSN 2004-02-10 22:37:27 Re: Join query on 1M row table slow