Re: hundreds of millions row dBs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wes <wespvp(at)syntegra(dot)com>
Cc: Guy Rouillier <guyr(at)masergy(dot)com>, pgsql-general(at)postgresql(dot)org, "Greer, Doug [NTK]" <doug(dot)r(dot)greer(at)mail(dot)sprint(dot)com>
Subject: Re: hundreds of millions row dBs
Date: 2005-01-04 21:20:03
Message-ID: 20313.1104873603@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wes <wespvp(at)syntegra(dot)com> writes:
> As I recall, the last time we rebuilt our database, it took about 3 hours to
> import 265 million rows of data. It then took another 16 hours to rebuild
> all the indexes.

Out of curiosity, what value of sort_mem were you using?

(In PG 8.0, the sort memory setting used by CREATE INDEX will be
maintenance_work_mem not work_mem, which should help in getting larger
values to be used. But in existing releases you usually need to think
about a manual tweak.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-01-04 21:36:36 Re: hundreds of millions row dBs
Previous Message Dann Corbit 2005-01-04 20:26:48 Re: hundreds of millions row dBs