Re: Optimize complex join to use where condition before

Поиск
Список
Период
Сортировка
От John Arbash Meinel
Тема Re: Optimize complex join to use where condition before
Дата
Msg-id 428526FD.7010208@arbash-meinel.com
обсуждение исходный текст
Ответ на Re: Optimize complex join to use where condition before  (Sebastian Hennebrueder <usenet@laliluna.de>)
Список 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
=:->


Вложения

В списке pgsql-performance по дате отправления:

Предыдущее
От: Sebastian Hennebrueder
Дата:
Сообщение: Re: Optimize complex join to use where condition before
Следующее
От: David Brown
Дата:
Сообщение: Re: ok you all win what is best opteron (I dont want a