Re: is it possible to make this faster?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Bruno Wolff III" <bruno(at)wolff(dot)to>, "Postgresql Performance" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: is it possible to make this faster?
Date: 2006-05-25 20:31:40
Message-ID: b42b73150605251331l85a1403pbf4c73656b6194bc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 5/25/06, Bruno Wolff III <bruno(at)wolff(dot)to> wrote:
> On Thu, May 25, 2006 at 16:07:19 -0400,
> Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> > been doing a lot of pgsql/mysql performance testing lately, and there
> > is one query that mysql does much better than pgsql...and I see it a
> > lot in normal development:
> >
> > select a,b,max(c) from t group by a,b;
> >

> 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)

merlin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Steinar H. Gunderson 2006-05-25 20:36:30 Re: is it possible to make this faster?
Previous Message Bruno Wolff III 2006-05-25 20:23:14 Re: is it possible to make this faster?