Re: TPC-R benchmarks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TPC-R benchmarks
Дата
Msg-id 29371.1065586557@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: TPC-R benchmarks  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
> To sum up the below:  it appears that whenever a set of WHERE conditions
> exceeds a certain level of complexity, the planner just ignores all
> applicable indexes and goes for a seq scan.

It looks to me like the planner is coercing the WHERE clause into
canonical OR-of-ANDs form (DNF).  Which is often a good heuristic
but it seems unhelpful for this query.

> How can we fix this?

Feel free to propose improvements to the heuristics in
src/backend/optimizer/prep/prepqual.c ...

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: TPC-R benchmarks
Следующее
От: Jeff
Дата:
Сообщение: Sun performance - Major discovery!