Re: Performance query about large tables, lots of concurrent access

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Performance query about large tables, lots of concurrent access
Дата
Msg-id 873b0o7xrn.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Performance query about large tables, lots of concurrent access  (Karl Wright <kwright@metacarta.com>)
Ответы Re: Performance query about large tables, lots of concurrent access  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-performance
"Karl Wright" <kwright@metacarta.com> writes:

>> In this case it looks like the planner is afraid that that's exactly
>> what will happen --- a cost of 14177 suggests that several thousand row
>> fetches are expected to happen, and yet it's only predicting 5 rows out
>> after the filter.  It's using this plan anyway because it has no better
>> alternative, but you should think about whether a different index
>> definition would help.

Another index won't help if the reason the cost is so high isn't because the
index isn't very selective but because there are lots of dead tuples.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Re: Performance query about large tables, lots of concurrent access
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance query about large tables, lots of concurrent access