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: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Many thanks! Ismo's reply solved the problem, and Tom's reply solved
another one.


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-2017 The PostgreSQL Global Development Group