Skip site navigation (1) Skip section navigation (2)

Re: 121+ million record table perf problems

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Craig James <craig_james(at)emolecules(dot)com>
Cc: cyber-postgres(at)midnightfantasy(dot)com, pgsql-performance(at)postgresql(dot)org
Subject: Re: 121+ million record table perf problems
Date: 2007-05-18 23:20:52
Message-ID: 20070518232052.GG15691@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-performance
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

In response to

pgsql-performance by date

Next:From: Y SidhuDate: 2007-05-18 23:26:05
Subject: Re: pg_stats how-to?
Previous:From: Tyrrill, EdDate: 2007-05-18 23:16:20
Subject: Re: Slow queries on big table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group