Re: Simple select, but takes long time - Mailing list pgsql-performance

From andrew@pillette.com
Subject Re: Simple select, but takes long time
Date
Msg-id 200801120537.m0C5bTJ18551@pillette.com
Whole thread Raw
In response to Simple select, but takes long time  ("James DeMichele" <James.DeMichele@redfin.com>)
Responses Re: Simple select, but takes long time
List pgsql-performance
"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.

pgsql-performance by date:

Previous
From: david@lang.hm
Date:
Subject: Re: Best way to index IP data?
Next
From: Tom Lane
Date:
Subject: Re: Simple select, but takes long time