Re: Performance of CLUSTER

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: Mark Thornton <mthornton(at)optrak(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Performance of CLUSTER
Date: 2012-06-11 14:14:52
Message-ID: 4FD5FD5C.5040203@optionshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 06/11/2012 09:02 AM, Mark Thornton wrote:

> I didn't think the process was using even the 500m it ought to have
> had available, whereas creating an index did appear to use that much.
> Note though that I didn't stay up all night watching it!

You'd be surprised. If you look in your base/pgsql_tmp directory during
a cluster of that table (make a copy of it if you don't want to
interfere with a running system) you should see that directory fill with
temporary structures, mostly during the index rebuild portions.

It also wouldn't hurt to bootstrap system cache with the contents of
that table. Do an explain analyze on SELECT * with no where clause and
all of that table should be in memory.

Oh, actually that reminds me... does your 10GB table fit into memory? If
not, that might explain it right there.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-444-8534
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Shaun Thomas 2012-06-11 14:44:23 Re: Performance of CLUSTER
Previous Message Mark Thornton 2012-06-11 14:02:23 Re: Performance of CLUSTER