Table Sorting and Limit Question

From: Dawn Hollingsworth <dmh(at)airdefense(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Table Sorting and Limit Question
Date: 2002-08-08 20:10:38
Message-ID: 1028837453.4754.1.camel@kaos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Currently we have a table with a sequence number( id ) as a primary key,
a date field which is indexed and several other columns. The user
interface allows the user to sort the data by date and limits the result
set to 100 rows.

The question is:
The user interface needs the capability to sort the table by date but
pull out the hundred row set that contains id say...542 for example.

What would be the best way to do this taking into account this table is
several hundred thousand rows?

Dawn Hollingsworth
Principal Engineer
AirDefense, Inc.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ludwig Lim 2002-08-09 01:42:23 Re: Table Sorting and Limit Question
Previous Message John Brothers 2002-08-08 19:18:57 Re: getting oid of an INSERT automatically