Re: is it possible to make this faster?

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: is it possible to make this faster?
Date: 2006-05-25 20:36:30
Message-ID: 200605251336.30985@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On May 25, 2006 01:31 pm, "Merlin Moncure" <mmoncure(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bruno Wolff III 2006-05-25 20:47:46 Re: is it possible to make this faster?
Previous Message Merlin Moncure 2006-05-25 20:31:40 Re: is it possible to make this faster?