pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zlatko Calusic <zlatko@iskon.hr>
To: Jie Liang <jliang@ipinc.com>
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Optimizing huge inserts/copy's
Date: 31 Aug 2000 00:13:18 +0200
Message-ID: <87pumqxurl.fsf@atlas.iskon.hr> (raw)
References: <Pine.BSF.4.10.10008291853170.57698-100000@megazone23.bigpanda.com>
	<39AD34BE.74717395@ipinc.com>

Jie Liang <jliang@ipinc.com> writes:

> Hi, there,
> 
> I tried different  ways,  include vaccum table ,  ensure index works, it
> still is as slow as ~100rows per minute.
> 

PGFSYNC=no in postmaster.init?

Well, this might be Debian Linux specific, pardon me if it is. I have
just begun playing with Postgres. Still learning, myself.

IOW, disable fsync after every statement and your OS will do much
better work clustering writes. That means more inserts/sec for you.

In one of my tests I was able to insert at ~1000/sec rate. Then I made
an experiment, enabled pgfsync _and_ indexes. The inserting speed
dropped to 10/sec. Very interesting.

Regards,
-- 
Zlatko



view thread (9+ messages)

Message-ID: <87pumqxurl.fsf@atlas.iskon.hr>
Permalink:  ../87pumqxurl.fsf@atlas.iskon.hr/
Also on:    postgresql.org/message-id/87pumqxurl.fsf@atlas.iskon.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: zlatko@iskon.hr, jliang@ipinc.com, sszabo@megazone23.bigpanda.com
  Subject: Re: Optimizing huge inserts/copy's
  In-Reply-To: <87pumqxurl.fsf@atlas.iskon.hr>
  References: <Pine.BSF.4.10.10008291853170.57698-100000@megazone23.bigpanda.com> <39AD34BE.74717395@ipinc.com> <87pumqxurl.fsf@atlas.iskon.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox