Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 381AC9FBACD for ; Tue, 27 Feb 2007 13:10:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 28333-07 for ; Tue, 27 Feb 2007 13:10:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 0B1379FBABD for ; Tue, 27 Feb 2007 13:10:43 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 20B3330909; Tue, 27 Feb 2007 18:10:42 +0100 (MET) From: "hatman" X-Newsgroups: pgsql.performance Subject: Insert performance Date: 27 Feb 2007 09:10:21 -0800 Organization: http://groups.google.com Lines: 33 Message-ID: <1172596221.393824.41130@j27g2000cwj.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Complaints-To: groups-abuse@google.com User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-1.heig-vd.ch:8080 (squid/2.5.STABLE4) Complaints-To: groups-abuse@google.com Injection-Info: j27g2000cwj.googlegroups.com; posting-host=193.134.216.146; posting-account=gnwH_QwAAAAQLNv14JlAW4Wgi-SQgnth To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200703/100 X-Sequence-Number: 23505 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=EBl.W