Re: constant time count(*) ?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: constant time count(*) ?
Дата
Msg-id Pine.LNX.4.44.0310152025050.21950-100000@peter.localdomain
обсуждение исходный текст
Ответ на constant time count(*) ?  (Mark Harrison <mh@pixar.com>)
Список pgsql-general
Mark Harrison writes:

> Is there a way to optimize count(*) such that it does not have
> to do a sequential scan?

No.  If you need to count a lot, you need to store the information
separately.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Getting error codes for failed queries?
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: constant time count(*) ?