Re: Slow Query- Bad Row Estimate

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Slow Query- Bad Row Estimate
Дата
Msg-id 4CCB3811.80900@agliodbs.com
обсуждение исходный текст
Ответ на Slow Query- Bad Row Estimate  ("Ozer, Pam" <pozer@automotive.com>)
Ответы Re: Slow Query- Bad Row Estimate  ("Ozer, Pam" <pozer@automotive.com>)
Список pgsql-performance
On 10/29/10 1:54 PM, Ozer, Pam wrote:
> "                    ->  Index Scan using dealergroupgeocache_i01 on
> dealergroupgeocache  (cost=0.00..5719.56 rows=9055 width=10) (actual
> time=0.015..87.689 rows=163491 loops=1)"

This appears to be your problem here.

a) when was dealergroupgeocache last ANALYZED?

b) try increasing the stats_target on dealergroupid and regionid, to say
500 and re-analyzing.

--
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com

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

Предыдущее
От: "Ozer, Pam"
Дата:
Сообщение: Slow Query- Bad Row Estimate
Следующее
От: david@lang.hm
Дата:
Сообщение: Re: BBU Cache vs. spindles