pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steven Butler <stevenb@kjross.com.au>
To: huang yaqin <hyq@gthome.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: good pc but bad performance,why?
Date: Wed, 7 Apr 2004 20:39:25 +1000
Message-ID: <001c01c41c8c$993eded0$fd08a8c0@steve> (raw)
References: <0HVS00G7FMQO35@mail.gthome.com>

It sounds almost like you're doing one insert per transaction.  Try wrapping
multiple inserts into a single transaction and see if that helps.  This may
not be appropriate for your application, but it does guarantee that
committed transactions will not be lost.

My apologies if you are already doing this. :)

BEGIN;
insert ...
insert ...
insert ...
COMMIT;

Regards,
Steve Butler

----- Original Message ----- 
From: "huang yaqin" <hyq@gthome.com>
To: "Richard Huxton" <dev@archonet.com>
Cc: <pgsql-performance@postgresql.org>
Sent: Wednesday, April 07, 2004 6:56 PM
Subject: Re: [PERFORM] good pc but bad performance,why?


Hello, Richard Huxton,

  You said  turning fsync off may cause losing data, that's terrible.
I use SCSI disk, and file system is ext3. I tune postgresql.conf and can't
get any improvement. So what can I do?
Does SCSI disk and IDE disk have difference?

     Regards,
Huang yaqin





view thread (23+ messages)  latest in thread

Message-ID: <001c01c41c8c$993eded0$fd08a8c0@steve>
Permalink:  ../001c01c41c8c$993eded0$fd08a8c0@steve/
Also on:    postgresql.org/message-id/001c01c41c8c$993eded0$fd08a8c0@steve

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: stevenb@kjross.com.au, hyq@gthome.com
  Subject: Re: good pc but bad performance,why?
  In-Reply-To: <001c01c41c8c$993eded0$fd08a8c0@steve>

* 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