Re: performance for high-volume log insertion - Mailing list pgsql-performance

From Tom Lane
Subject Re: performance for high-volume log insertion
Date
Msg-id 11633.1240433349@sss.pgh.pa.us
Whole thread Raw
In response to Re: performance for high-volume log insertion  (Stephen Frost <sfrost@snowman.net>)
List pgsql-performance
Stephen Frost <sfrost@snowman.net> writes:
> * Glenn Maynard (glennfmaynard@gmail.com) wrote:
>> separate inserts, no transaction: 21.21s
>> separate inserts, same transaction: 1.89s
>> 40 inserts, 100 rows/insert: 0.18s
>> one 40000-value insert: 0.16s
>> 40 prepared inserts, 100 rows/insert: 0.15s
>> COPY (text): 0.10s
>> COPY (binary): 0.10s

> What about 40000 individual prepared inserts?  Just curious about it.

Also, just to be clear: were the "40 insert" cases 40 separate
transactions or one transaction?  I think the latter was meant but
it's not 100% clear.

            regards, tom lane

pgsql-performance by date:

Previous
From: Stephen Frost
Date:
Subject: Re: performance for high-volume log insertion
Next
From: James Mansion
Date:
Subject: Re: performance for high-volume log insertion