Re: Query uses incorrect index

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Query uses incorrect index
Дата
Msg-id 4D119B40020000250003892D@gw.wicourts.gov
обсуждение исходный текст
Ответ на Query uses incorrect index  (pasman pasmański <pasman.p@gmail.com>)
Список pgsql-performance
Guillaume Cottenceau  wrote:

> If I'm correct, you're basically telling postgresql that your
> disk is unusually fast compared to your CPU. Even if some queries
> will run faster from a side-effect of these settings, you're
> likely to create other random problems...

If this is set globally and the active portion of the database is not
highly cached, yes.  If the example query is typical of the level of
caching for frequently-run queries, it might provide an overall
performance boost to set these in postgresql.conf.

The original problem was that the optimizer was grossly
over-estimating the cost of returning a tuple through the index,
which was taking about 0.01 ms per tuple.

-Kevin

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

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: PostgreSQL 9.0 x64 bit pgbench TPC very low question?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Query uses incorrect index