Re: [INTERFACES] Performance - Mailing list pgsql-interfaces

From Vadim Mikheev
Subject Re: [INTERFACES] Performance
Date
Msg-id 3771880B.5109FA39@krs.ru
Whole thread Raw
In response to Performance  (Steven Bradley <sbradley@llnl.gov>)
List pgsql-interfaces
Steven Bradley wrote:
> 
> I have simplified the problem down to a single (non-indexed) table with
> about a half-dozen columns (int4, timestamp, varchar, etc.)   I wrote a
> quick and dirty C program which uses the libpq interface to INSERT records
> into the table in real-time.  The best performance I could achieve was on
> the order of 15 inserts per second.  What I need is something much closer
> to 100 inserts per second.

Put INSERTs inside BEGIN/END to execute them in single transaction.

Vadim


pgsql-interfaces by date:

Previous
From: "John Huttley"
Date:
Subject: Re: [INTERFACES] C tuples (For V7 please, hackers!)
Next
From: Thomas Lockhart
Date:
Subject: Re: [INTERFACES] Performance