Optimize for insertions?

From: "Gurupartap Davis" <partap(at)yahoo(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Optimize for insertions?
Date: 2001-11-26 21:17:00
Message-ID: 004901c176bf$b03ccbd0$0f00a8c0@marlows
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to migrate a mysql database to postgresql. I've got the tables all set up, but inserting the data from the mysql dumps is taking forever. I've got about 200 million rows in the big table (growing by about 1.5 million per day), but at the 100 inserts/second I'm getting, this will take over 3 weeks. MySQL on the same machine averages about 1100-1200 inserts/second (no, I'm not running them both at the same time ;-)

Any thoughts on how to tweak the postmaster for quick inserts? I've got fsync turned off, but that's about all I've tried so far.

I'm running postgresql 7.1.3 on Linux (Redhat 7.2 with ext3) with a 700MHz processor, 256MB RAM, and an 80GB IDE HD

Thanks
-partap

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dcr 2001-11-26 22:04:48 Re: Postgres 7.1.3 RPMs for RedHat 6.2 ?
Previous Message Command Prompt, Inc. 2001-11-26 21:07:49 Pratical PostgreSQL now at production