Re: JDBC addBatch more efficient?

From: David Wall <d(dot)wall(at)computer(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC addBatch more efficient?
Date: 2008-04-21 15:04:15
Message-ID: 480CACEF.7000208@computer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> The JDBC driver's batch processing is more efficient than regular
> execution because it requires fewer network roundtrips so there's less
> waiting. The JDBC batch is broken into an internal batch size of 256
> statement and all of these are sent over to the server at once.

That's great, Kris. I believe our code only does 100 updates/deletes
before committing the transaction anyway, so this should work well for us.

Thanks,
David

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivano Luberti 2008-04-21 15:11:18 Re: JDBC addBatch more efficient?
Previous Message Chris Browne 2008-04-21 14:58:52 pg_bulkloader (was Re: In the belly of the beast (MySQLCon))