Re: Multiple Row Insert vs. Batch - Mailing list pgsql-jdbc

From Robert DiFalco
Subject Re: Multiple Row Insert vs. Batch
Date
Msg-id 33CACA06-F1A0-466B-B985-D33ACA15A984@gmail.com
Whole thread Raw
In response to Re: Multiple Row Insert vs. Batch  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: Multiple Row Insert vs. Batch  (Robert DiFalco <robert.difalco@gmail.com>)
List pgsql-jdbc
Yes that's correct. A multiple row insert with a single insert statement. I'll try benchmarking the two on Monday. My guess is that they are pretty damn similar. 

Sent from my iPhone

On Jun 6, 2015, at 10:35 AM, Dave Cramer <pg@fastcrypt.com> wrote:

Robert ??

Is that what you meant ?

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 6 June 2015 at 13:34, Vitalii Tymchyshyn <vit@tym.im> wrote:

I think OP meant something like
Insert into table values (?,?,?),(?,?,?),...,(?,?,?);
Vs batch of insert into table values(?,?,?);

I really think first would be faster up to a certain amount of rows, but test is needed to check.

Vitalii Tymchyshyn

Сб, 6 черв. 2015 13:30 Dave Cramer <pg@fastcrypt.com> пише:

batch should be faster and if it isn't we did something wrong

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 6 June 2015 at 12:34, Robert DiFalco <robert.difalco@gmail.com> wrote:
Say I need to insert 250 rows. Is single-statement multiple row insert or JDBC batch likely to be faster?

Thanks!

R.


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Multiple Row Insert vs. Batch
Next
From: Robert DiFalco
Date:
Subject: Re: Multiple Row Insert vs. Batch