pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Craig James <craig_james@emolecules.com>
Cc: cyber-postgres@midnightfantasy.com
Cc: pgsql-performance@postgresql.org
Subject: Re: 121+ million record table perf problems
Date: Fri, 18 May 2007 19:20:52 -0400
Message-ID: <20070518232052.GG15691@alvh.no-ip.org> (raw)
In-Reply-To: <464E29A4.4050309@emolecules.com>
References: <Pine.LNX.4.64.0705181215160.23563@cerberus.midnightfantasy.com>
	<464E29A4.4050309@emolecules.com>

Craig James wrote:

> Better yet, if you can stand a short down time, you can drop indexes on 
> that column, truncate, then do 121 million inserts, and finally 
> reindex.  That will be MUCH faster.

Or you can do a CLUSTER, which does all the same things automatically.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (10+ messages)  latest in thread

Message-ID: <20070518232052.GG15691@alvh.no-ip.org>
Permalink:  ../20070518232052.GG15691@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070518232052.GG15691@alvh.no-ip.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, craig_james@emolecules.com, cyber-postgres@midnightfantasy.com
  Subject: Re: 121+ million record table perf problems
  In-Reply-To: <20070518232052.GG15691@alvh.no-ip.org>

* 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