Re: realtime data inserts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Adam Siegel" <adam(at)sycamorehq(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: realtime data inserts
Date: 2003-05-10 16:00:02
Message-ID: 6754.1052582402@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-performance

"Adam Siegel" <adam(at)sycamorehq(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ericson Smith 2003-05-10 16:02:18 Re: realtime data inserts
Previous Message Mathieu Arnold 2003-05-10 15:48:26 pg_dump && tar && /tmp

Browse pgsql-hackers by date

  From Date Subject
Next Message Ericson Smith 2003-05-10 16:02:18 Re: realtime data inserts
Previous Message Jim C. Nasby 2003-05-10 15:53:09 Re: Plans for index names unique to a table?

Browse pgsql-performance by date

  From Date Subject
Next Message Ericson Smith 2003-05-10 16:02:18 Re: realtime data inserts
Previous Message Adam Siegel 2003-05-10 15:25:16 realtime data inserts