pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Jeremy Palmer <JPalmer@linz.govt.nz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: andy@squeakycode.net <andy@squeakycode.net>
Subject: Re: Possible to improve query plan?
Date: Mon, 24 Jan 2011 18:01:31 -0600
Message-ID: <4D3DBE7B0200002500039B94@gw.wicourts.gov> (raw)
In-Reply-To: <666FB8D75E95AE42965A0E76A5E5337E06D2D27965@prdlsmmsg01.ad.linz.govt.nz>
References: <4D341E6802000025000396AF@gw.wicourts.gov>
	<AANLkTi=xD9hJEbtdzzaKO9eNBDSY7WZk=y6Y2KshgPF+@mail.gmail.com>
	<4D3D59810200002500039B05@gw.wicourts.gov>
	<4D3D59810200002500039B05@gw.wicourts.gov>
	<9658.1295890414@sss.pgh.pa.us>
	<4D3D64A60200002500039B1E@gw.wicourts.gov>
	<666FB8D75E95AE42965A0E76A5E5337E06D2D27965@prdlsmmsg01.ad.linz.govt.nz>

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



view thread (22+ messages)  latest in thread

Message-ID: <4D3DBE7B0200002500039B94@gw.wicourts.gov>
Permalink:  ../4D3DBE7B0200002500039B94@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D3DBE7B0200002500039B94@gw.wicourts.gov

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, JPalmer@linz.govt.nz, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, andy@squeakycode.net
  Subject: Re: Possible to improve query plan?
  In-Reply-To: <4D3DBE7B0200002500039B94@gw.wicourts.gov>
  References: <4D341E6802000025000396AF@gw.wicourts.gov> <AANLkTi=xD9hJEbtdzzaKO9eNBDSY7WZk=y6Y2KshgPF+@mail.gmail.com> <4D3D59810200002500039B05@gw.wicourts.gov> <9658.1295890414@sss.pgh.pa.us> <4D3D64A60200002500039B1E@gw.wicourts.gov> <666FB8D75E95AE42965A0E76A5E5337E06D2D27965@prdlsmmsg01.ad.linz.govt.nz> <4D3DBE7B0200002500039B94@gw.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