Re: Query across a date range

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query across a date range
Дата
Msg-id 28727.1105126504@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query across a date range  (David Jaquay <djaquay@gmail.com>)
Список pgsql-performance
David Jaquay <djaquay@gmail.com> writes:
> Summary: Doing a two or three table join for a date range performs
> worse than doing the same query individually for each date in the
> range.

Could we see EXPLAIN ANALYZE, not just EXPLAIN, results?

Also, have you ANALYZEd lately?  If the estimated row counts are at all
accurate, I doubt that forcing a nestloop indexscan would improve the
situation.

Also, what PG version is this?

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Query across a date range
Следующее
От: David Jaquay
Дата:
Сообщение: Re: Query across a date range