Re: Slow loads when indexes added.

From: Stef <svb(at)ucs(dot)co(dot)za>
To: andrew(at)pillette(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow loads when indexes added.
Date: 2005-03-16 07:59:39
Message-ID: 20050316095939.2d58a128@svb.ucs.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

andrew(at)pillette(dot)com mentioned :
=> Try ANALYZE after loading the referenced tables, but before loading the main table

I attached a new script for creating the load file...

Analyze didn't help, it actually took longer to load.
I set autocommit to off, and put a commit after every 100
inserts, chattr'd noatime atrribute off recursively on PGDATA, and
set fsync to off, this improved the time from 3min 51sec to 2min 37 sec
for the slow scenario.

But I was already doing all these things in the app that
used to take 40 minutes, but now takes four hours to load.

Any other suggestions?

Kind Regards
Stefan

Browse pgsql-performance by date

  From Date Subject
Next Message Magnus Hagander 2005-03-16 09:42:04 Re: cpu_tuple_cost
Previous Message Greg Stark 2005-03-16 07:23:47 Re: cpu_tuple_cost