Re: Possible to improve query plan? - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Possible to improve query plan?
Date
Msg-id 4D3DBE7B0200002500039B94@gw.wicourts.gov
Whole thread Raw
In response to Re: Possible to improve query plan?  (Jeremy Palmer <JPalmer@linz.govt.nz>)
Responses Re: Possible to improve query plan?  (Jeremy Palmer <JPalmer@linz.govt.nz>)
List pgsql-performance
Jeremy Palmer <JPalmer@linz.govt.nz> wrote:

> My only question is how often will I need to re-cluster the
> table, because it comes at quite a cost.

I probably should have mentioned that the CLUSTER will run faster if
the data is already mostly in the right sequence.  You'll be doing a
nearly sequential pass over the heap, which should minimize seek
time, especially if the OS notices the pattern and starts doing
sequential read-ahead.

-Kevin

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Possible to improve query plan?
Next
From: Jeremy Palmer
Date:
Subject: Re: Possible to improve query plan?