Re: query plan worse after analyze

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query plan worse after analyze
Дата
Msg-id 11261.1191649803@sss.pgh.pa.us
обсуждение исходный текст
Ответ на query plan worse after analyze  ("Jeff Frost" <jeff@frostconsultingllc.com>)
Ответы Re: query plan worse after analyze  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-performance
"Jeff Frost" <jeff@frostconsultingllc.com> writes:
> Before analyze it seems to choose Bitmap Heap Scan on episodes
> current_episode, but after it chooses Index Scan Backward using
> index_episodes_on_publish_on on episodes current_episode.

Have you tried raising the stats target for "episodes"?  Seems like
the problem is a misestimate of the frequency of matches for
season_id = something.

            regards, tom lane

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

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: query plan worse after analyze
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: query plan worse after analyze