Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group