Re: count * performance issue

Поиск
Список
Период
Сортировка
От Matthew
Тема Re: count * performance issue
Дата
Msg-id Pine.LNX.4.64.0803111355440.20402@aragorn.flymine.org
обсуждение исходный текст
Ответ на Re: count * performance issue  (Bill Moran <wmoran@collaborativefusion.com>)
Ответы Re: count * performance issue  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-performance
On Tue, 11 Mar 2008, Bill Moran wrote:

> In response to "Robins Tharakan" <tharakan@gmail.com>:
>> Sorry, if I am missing something here, but shouldn't something like this
>> allow us to get a (fast) accurate count ?
>>
>> SELECT COUNT(*) from table WHERE indexed_field IS NULL
>> +
>> SELECT COUNT(*) from table WHERE indexed_field IS NOT NULL
>
> For certain, qualified definitions of "fast", sure.

And certain, qualified definitions of "accurate" as well. Race condition?

Matthew

--
"Television is a medium because it is neither rare nor well done."
  -- Fred Friendly

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: how many index can have????
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: count * performance issue