| От | Mark Mielke |
|---|---|
| Тема | Re: count * performance issue |
| Дата | |
| Msg-id | 47D5F61F.4080305@mark.mielke.cc обсуждение |
| Ответ на | Re: count * performance issue ("Robins Tharakan" <tharakan@gmail.com>) |
| Список | pgsql-performance |
Hi,
I have been reading this conversation for a few days now and I just wanted to ask this. From the release notes, one of the new additions in 8.3 is (Allow col IS NULL to use an index (Teodor)).
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
-- Mark Mielke <mark@mielke.cc>
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера