Re: performance problem with LIMIT (order BY in DESC order). Wrong index used?

Поиск
Список
Период
Сортировка
От Dieter Rehbein
Тема Re: performance problem with LIMIT (order BY in DESC order). Wrong index used?
Дата
Msg-id 93F9FA07-1BFF-4052-98FA-56FFF9D5E39D@skiline.cc
обсуждение исходный текст
Ответ на Re: performance problem with LIMIT (order BY in DESC order). Wrong index used?  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-performance
thank's a lot guys,  I will try that out.

regards
Dieter



Am 12.04.2011 um 11:07 schrieb Claudio Freire:

On Tue, Apr 12, 2011 at 10:59 AM, Dieter Rehbein
<dieter.rehbein@skiline.cc> wrote:
> I just executed a VACUUM ANALYZE and now everything performs well. hm, strange.

That probably means you need more statistics - try increasing the
newsfeed's statistics target count.

ALTER TABLE newsfeed_item ALTER COLUMN newsfeed SET STATISTICS <n>;

Try different <n> numbers, you can crank it up to 4000 or perhaps more
in 9.0, but you should start lower I guess.


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

Предыдущее
От: tv@fuzzy.cz
Дата:
Сообщение: Re: performance problem with LIMIT (order BY in DESC order). Wrong index used?
Следующее
От: Glyn Astill
Дата:
Сообщение: Re: Linux: more cores = less concurrency.