Re: Optimizing suggestions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Ford <david+cert(at)blue-labs(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Optimizing suggestions
Date: 2002-06-22 21:48:08
Message-ID: 4788.1024782488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Ford <david+cert(at)blue-labs(dot)org> writes:
> As stated above, I'd like to fetch a count of rows
> per day for the last N days.

GROUP BY seems like the obvious answer...

> In the near future I'm going to split this table up into many sub tables

Why? Aren't you just going to have a need for lots of joins, if you
do that?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-06-22 21:55:23 Re: COPY problem
Previous Message Bruno Baguette 2002-06-22 20:12:59 - pl/pgSQL - How can I intercept an eventual exception and put it in a text ?