| От | Tino Wildenhain |
|---|---|
| Тема | Re: count * performance issue |
| Дата | |
| Msg-id | 47D690A2.2090509@wildenhain.de обсуждение исходный текст |
| Ответ на | Re: count * performance issue (Matthew <matthew@flymine.org>) |
| Ответы |
Re: count * performance issue
|
| Список | pgsql-performance |
Hi, Matthew wrote: > 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? You mean in a three-state-logic? null, not null and something different? ;-) Tino
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера