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: (view raw, whole thread or download thread mbox)
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                      
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-2017 The PostgreSQL Global Development Group