Re: which one is faster

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: which one is faster
Дата
Msg-id AANLkTimx3bcBoxVeU1CLVONGn+UE-Cf14UzNPgciL6Vp@mail.gmail.com
обсуждение исходный текст
Ответ на Re: which one is faster  (Szymon Guz <mabewlun@gmail.com>)
Ответы Re: which one is faster
Список pgsql-performance
2010/10/26 Szymon Guz <mabewlun@gmail.com>:
>
> Well, strange. Why is that slower?

To answer that fully, you would need to see the implementation.
suffice to say,

count(a) does:

if (a <> NULL)
{
  count++;
}

and count(*) does:

  count++;



--
GJ

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

Предыдущее
От: Szymon Guz
Дата:
Сообщение: Re: which one is faster
Следующее
От: Szymon Guz
Дата:
Сообщение: Re: which one is faster