Re: is it possible to make this faster?

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: is it possible to make this faster?
Дата
Msg-id 200605251336.30985@hal.medialogik.com
обсуждение исходный текст
Ответ на Re: is it possible to make this faster?  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-performance
On May 25, 2006 01:31 pm, "Merlin Moncure" <mmoncure@gmail.com> wrote:
> > SELECT DISTINCT ON (a, b) a, b, c FROM t ORDER BY a DESC, b DESC, c
> > DESC;
>
> that is actually slower than group by in my case...am i missing
> something? (both essentially resolved to seq_scan)

Try it with an index on a,b,c.

--
Alan

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: is it possible to make this faster?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: is it possible to make this faster?