Indexes

From: Primoz <primoz(at)slo-tech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Indexes
Date: 2004-08-20 03:31:36
Message-ID: 200408200531.38187.primoz@slo-tech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

is there any way to speedup queryes like

select ... from [table a] where [int field b] = [number] order by [datetime
field c] desc limit [number];

with index on field b I get something, but pgsql afterwards resolves to
sorting manually.

partial indices with index on field c where field b = number works, but are
dirty and are becoming annoying as number of different values of field b
grows.

Any suggestions?

Primoz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hunter Hillegas 2004-08-20 04:59:23 Re: Postgres and JBOSS
Previous Message Tom Lane 2004-08-20 03:16:32 Re: Indexes