Re: Planner statistics, correlations

Поиск
Список
Период
Сортировка
От Tobias Brox
Тема Re: Planner statistics, correlations
Дата
Msg-id 20070112090500.GB16243@oppetid.no
обсуждение исходный текст
Ответ на Re: Planner statistics, correlations  ("Peter Childs" <peterachilds@gmail.com>)
Ответы Re: Planner statistics, correlations
Re: Planner statistics, correlations
Список pgsql-performance
[Peter Childs - Fri at 08:56:54AM +0000]
> Can you say what state might be rather than what it is not. I'm guess
> that state is an int but there is only a limited list of possible
> states, if you can say what it might be rather than what it is the
> index is more liklly to be used.

  explain select * from events where state in (1,2,3) and event_time<now()

also estimates almost 5k of rows.  I also tried:

  explain select * from events where state=2 and event_time<now()

but get the same behaviour.

Maybe it would help to partitionate the table every year?

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

Предыдущее
От: "Peter Childs"
Дата:
Сообщение: Re: Planner statistics, correlations
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: [HACKERS] unusual performance for vac following 8.2upgrade