Re: Creating tons of tables to support a query - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Creating tons of tables to support a query
Date
Msg-id 20020908194748.E8314-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Creating tons of tables to support a query  (Jan Ploski <jpljpl@gmx.de>)
List pgsql-general
On Sun, 8 Sep 2002, Jan Ploski wrote:

> I am in particular wondering, why an index on message(sectionID, dateSent)
> does not make these queries comparably fast:
>
>     select msgnum from message where
>         sectionID = ? and
>         dateSent > ?
>         order by dateSent
>         limit 1;

I don't think that'll use an index on (sectionID, dateSent) for the sort
step.  I think an index on (dateSent,sectionID) might be, however.




pgsql-general by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Australian Open Source Awards
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Australian Open Source Awards