pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Igor Postelnik <Igor_Postelnik@messageone.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Batch updates and inserts
Date: Mon, 9 May 2005 12:52:39 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0505091250220.5342@leary.csoft.net> (raw)
In-Reply-To: <46F30BC04EC6364695BC07D4A57AAD2C8F119F@auscorpex-1.austin.messageone.com>
References: <46F30BC04EC6364695BC07D4A57AAD2C8F119F@auscorpex-1.austin.messageone.com>



On Mon, 9 May 2005, Igor Postelnik wrote:

> What combination of JDBC driver and backend do I need to have support
> for addBatch/executeBatch? What's a reasonable limit for number of
> statements in a batch - either by number of rows or total size? 
> 

Batch statements have been available in the driver for some time, but the 
8.0 driver is the first driver to actually perform them in a batch 
fashion.  It requires at least a 7.4 server to take advantage of this.  
Size doesn't really matter because the driver itself will internally run 
things in batches of 256 statements at a time.

Kris Jurka




view thread (2+ messages)

Message-ID: <Pine.BSO.4.56.0505091250220.5342@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0505091250220.5342@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0505091250220.5342@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Igor_Postelnik@messageone.com
  Subject: Re: Batch updates and inserts
  In-Reply-To: <Pine.BSO.4.56.0505091250220.5342@leary.csoft.net>
  References: <46F30BC04EC6364695BC07D4A57AAD2C8F119F@auscorpex-1.austin.messageone.com> <Pine.BSO.4.56.0505091250220.5342@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox