Re: Optimize complex join to use where condition before

From: John Arbash Meinel <john(at)arbash-meinel(dot)com>
To: Sebastian Hennebrueder <usenet(at)laliluna(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Optimize complex join to use where condition before
Date: 2005-05-13 22:15:25
Message-ID: 428526FD.7010208@arbash-meinel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Sebastian Hennebrueder wrote:

> I found a solution to improve my query. I do not know why but the
> statistics for all column has been 0.
> I changed this to 10 for index columns and to 20 for all foreign key
> columns.
> and to 100 for foreign key columns.
> I set the random page cost to 2
> and now the query runs as expected.
>
> Many thanks to all of the posts in my and in other threads which
> helped a lot.
>
> Sebastian

I think 0 = use default. But still, changing to 20 and 100 probably
fixes your problems.

John
=:->

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message David Brown 2005-05-14 00:03:06 Re: ok you all win what is best opteron (I dont want a
Previous Message Sebastian Hennebrueder 2005-05-13 22:07:05 Re: Optimize complex join to use where condition before