From: hatman <joel.winteregg@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Insert performance
Date: 27 Feb 2007 09:10:21 -0800
Message-ID: <1172596221.393824.41130@j27g2000cwj.googlegroups.com> (raw)
Dear all,
After many tests and doc reading, i finally try to get help from
you...
Here is my problem. With some heavy insert into a simple BD (one
table, no indexes) i can't get better perf than 8000 inserts/sec. I'm
testing it using a simple C software which use libpq and which use:
- Insert prepared statement (to avoid too many request parsing on the
server)
- transaction of 100000 inserts
My server which has the following config:
- 3G RAM
- Pentium D - 64 bits, 3Ghz
- database data on hardware raid 0 disks
- x_log (WAL logs) on an other single hard drive
The server only use 30% of the CPU, 10% of disk access and not much
RAM... So i'm wondering where could be the bottle neck and why i can't
get better performance ?
I really need to use inserts and i can't change it to use COPY...
Any advice is welcome. Sorry in advance for my bad understanding of
database !
Thanks in advance.
Regards,
Joël.W
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: joel.winteregg@gmail.com
Subject: Re: Insert performance
In-Reply-To: <1172596221.393824.41130@j27g2000cwj.googlegroups.com>
* 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