Re: speeding up COUNT and DISTINCT queries

Поиск
Список
Период
Сортировка
От Max Baker
Тема Re: speeding up COUNT and DISTINCT queries
Дата
Msg-id 20030313010018.GN30411@warped.org
обсуждение исходный текст
Ответ на Re: speeding up COUNT and DISTINCT queries  ("Chad Thompson" <chad@weblinkservices.com>)
Список pgsql-performance
On Wed, Mar 12, 2003 at 03:55:09PM -0700, Chad Thompson wrote:
> Ive found that group by works faster than distinct.
>
> Try
> EXPLAIN ANALYZE  select mac from node group by mac;

This was about 25% faster, thanks!

That will work for distinct() only calls, but I still am looking for a
way to speed up the count() command.  Maybe an internal counter of rows,
and  triggers?

-m

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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: speeding up COUNT and DISTINCT queries
Следующее
От: Max Baker
Дата:
Сообщение: Re: speeding up COUNT and DISTINCT queries