From: andrew@pillette.com
To: James DeMichele <James.DeMichele@redfin.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Simple select, but takes long time
Date: Fri, 11 Jan 2008 21:37:29 -0800
Message-ID: <200801120537.m0C5bTJ18551@pillette.com> (raw)
"James DeMichele" <James.DeMichele@redfin.com> wrote ..
> Then, I have the following index on the table:
> "this_index" (status, source_id, <another_column>)
If you have many queries of this type, do
CLUSTER this_index ON tablename;
and retry the SELECT.
MySQL is using some sort of auto-clustering ISAM on the other box mayhaps?
In Postgres you will have to re-CLUSTER periodically if there are INSERTs and UPDATEs.
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: andrew@pillette.com, James.DeMichele@redfin.com
Subject: Re: Simple select, but takes long time
In-Reply-To: <200801120537.m0C5bTJ18551@pillette.com>
* 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