Re: slow subselects

From: "Marko Niinimaki" <manzikki(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: slow subselects
Date: 2007-02-21 05:34:35
Message-ID: 58b7e6510702202134n45e1ef87tc8bc62b2586c43d7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Many thanks! Ismo's reply solved the problem, and Tom's reply solved
another one.

Marko

Ismo Tuononen wrote:
> select studentid,max(score) from studentprofile group by studentid;

On 20/02/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> The optimal index for this would be on studentprofile(studentid,score).

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jacek Zaręba 2007-02-21 09:57:26 Postgres performance Linux vs FreeBSD
Previous Message Dave Dutcher 2007-02-20 23:46:56 Re: SELECT performance problem