X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ACB16475CE5; Sat, 10 May 2003 12:00:08 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 54EAC4762FE; Sat, 10 May 2003 12:00:03 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4AG03U6006755; Sat, 10 May 2003 12:00:03 -0400 (EDT) To: "Adam Siegel" Cc: pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org, pgsql-general@postgresql.org Subject: Re: realtime data inserts In-reply-to: References: Comments: In-reply-to "Adam Siegel" message dated "Sat, 10 May 2003 11:25:16 -0400" Date: Sat, 10 May 2003 12:00:02 -0400 Message-ID: <6754.1052582402@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/323 X-Sequence-Number: 41978 "Adam Siegel" writes: > I have realtime data flowing at a rate of 500, 512 byte packets per second. > I want to log the info in a database table with two other columns, one for a > timestamp and one for a name of the packet. The max rate I can achieve is > 350 inserts per second on a sun blade 2000. The inserts are grouped in a > transaction and I commit every 1200 records. Have you thought about using COPY? regards, tom lane