From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Matthew Wakeling <matthew@flymine.org>
To: pgsql-performance@postgresql.org
Subject: Re: Very specialised query
Date: Thu, 26 Mar 2009 09:47:33 -0500
Message-ID: <49CB4F35.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <alpine.DEB.2.00.0903261313290.21772@aragorn.flymine.org>
References: <alpine.DEB.2.00.0903261313290.21772@aragorn.flymine.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, matthew@flymine.org
Subject: Re: Very specialised query
In-Reply-To: <49CB4F35.EE98.0025.0@wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox