Re: Very specialised query - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Very specialised query
Date
Msg-id 49CB4F35.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to Very specialised query  (Matthew Wakeling <matthew@flymine.org>)
List pgsql-performance
Matthew Wakeling <matthew@flymine.org> wrote:
> any other tips?

I would try adding an index on (objectid, start) and another on
(objectid, end) and see how that first query does.  Also, if id is a
unique identifier, I'd recommend a unique constraint or (better) a
primary key definition.  Check the system tables to see whether all
the existing indexes are actually being used -- if not, drop them.

-Kevin

pgsql-performance by date:

Previous
From: Matthew Wakeling
Date:
Subject: Very specialised query
Next
From: Tom Lane
Date:
Subject: Re: Very specialised query