Re: Selecting max(pk) is slow on empty set

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Selecting max(pk) is slow on empty set
Дата
Msg-id 162867790801220727w71bf4df8ube4ea9e24e850084@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Selecting max(pk) is slow on empty set  ("Alexander Staubo" <alex@purefiction.net>)
Список pgsql-general
>
> But you're right. With the combined index I can set the granularity
> back to 1000, and empty queries as well as non-empty queries perform
> well. The row estimate is still way off, though.¨

Bigger value --> slow analyze. Real maximum is about 200-300. So be carefully.

Regards

Pavel

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

Предыдущее
От: "Alexander Staubo"
Дата:
Сообщение: Re: Selecting max(pk) is slow on empty set
Следующее
От: brian
Дата:
Сообщение: Re: Stored procedures when and how: was: Sun acquires MySQL