Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 18D10B5DD41 for ; Tue, 12 Jul 2011 10:58:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 71831-02 for ; Tue, 12 Jul 2011 13:58:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 6E148B5DD76 for ; Tue, 12 Jul 2011 10:58:07 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 12 Jul 2011 08:58:06 -0500 Message-Id: <4E1C0C9C020000250003F225@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 12 Jul 2011 08:58:04 -0500 From: "Kevin Grittner" To: "Jenish Vyas" , Subject: Re: Maximum insert per second References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/73 X-Sequence-Number: 37852 Jenish Vyas wrote: > I am able to insert 1190- 1210 records per seconds. > > Now I just want to know by what extend I could stretch it. > > What is the maximum insert I can achieve in one second? What is > the maximum number of insert postgresql achieved so far? I don't have hard numbers handy, and I know I don't have the fastest hardware out there, but for bulk loads of narrow tables we typically see tens of thousands of rows per second. Of course that's with "running with scissors" settings. We turn off archiving, autovacuum, fsync, full_page_writes, and synchronous_commit; and COPY rows within the same transaction which creates the table, before creating any indexes. Then we build the indexes, VACUUM FREEZE ANALYZE, and change back to a configuration which actually preserves the data on a crash. From memory, I would say on our larger servers we've probably seen a max of something on the order of 50,000 rows per second on relatively narrow tables, without factoring the index build and vacuum times. -Kevin