Re: count() in 9.2

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: count() in 9.2
Дата
Msg-id CA+U5nM+2WDiqmGBdbSnPoyt+OBUOYAFAyaB8=-BtV4Si7rijmA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: count() in 9.2  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-novice
On 17 October 2012 18:48, Thomas Kellerer <spam_eater@gmx.net> wrote:
> Steve Horn wrote on 17.10.2012 17:00:
>
>> One of the reasons that my team could not take advantage of
>> PostgreSQL was due to the poor performance of count(*) aggregate
>> function.
>
> I wonder what kind of application makes a slow count(*) on a table a show
> stopper.

That's a much better answer than my original reply.

There is only one answer, in any DBMS: Prepare special datastructures
that allow you to do that quickly, which is also an option in
Postgres.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Ennio-Sr
Дата:
Сообщение: WARNING: psql version 8.4, server version 9.1
Следующее
От: Steve Horn
Дата:
Сообщение: Re: count() in 9.2