count(distinct)

Поиск
Список
Период
Сортировка
От Zdravko Balorda
Тема count(distinct)
Дата
Msg-id 498C4326.8080500@siix.com
обсуждение исходный текст
Ответы Re: count(distinct)  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
Hi,

this is probably an old issue but I'm not all that experienced.

I wonder if an index can be accessed rather directly, as to speed up
a query like "select count(distinct())", by simply calculating the 
number of branches (leaves) an index has. Or at least to skip sorting.

Best regards, Zdravko



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

Предыдущее
От: Boycott TechForums
Дата:
Сообщение: test
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: count(distinct)