Re: is it possible to make this faster? - Mailing list pgsql-performance

From Alan Hodgson
Subject Re: is it possible to make this faster?
Date
Msg-id 200605251336.30985@hal.medialogik.com
Whole thread Raw
In response to Re: is it possible to make this faster?  ("Merlin Moncure" <mmoncure@gmail.com>)
List 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 by date:

Previous
From: "Steinar H. Gunderson"
Date:
Subject: Re: is it possible to make this faster?
Next
From: Bruno Wolff III
Date:
Subject: Re: is it possible to make this faster?