Can this be indexed?

Поиск
Список
Период
Сортировка
От Net Virtual Mailing Lists
Тема Can this be indexed?
Дата
Msg-id 20041106143401.45@mail.net-virtual.com
обсуждение исходный текст
Ответы Re: Can this be indexed?  ("Ed L." <pgsql@bluepolka.net>)
Re: Can this be indexed?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-general
Is there a way to create an index that would make this query be efficient
and not perform a sequential scan?

SELECT count(*) AS count,id FROM sometable GROUP BY id;

.. I've considered creating a rule on this table which would put the
results of this into another table anytime it is updated, but I thought
there might be an easier way.

Thanks!

- Greg


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

Предыдущее
От: Alvaro Herrera Munoz
Дата:
Сообщение: Re: Gborg down?
Следующее
От: "Ed L."
Дата:
Сообщение: Re: Can this be indexed?