From: dmp <danap@ttc-cmc.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc)
Date: Fri, 14 Dec 2012 10:23:32 -0700
Message-ID: <50CB6094.3000905@ttc-cmc.net> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Kris Jurka Wrote:
> Internally the driver splits each batch into sub-batches of 250 to send to
> the server to reduce the possibility of deadlocking the network
> connection. When auto-commit is enabled in the driver, the auto-commit
> setting affects the whole sub-batch of 250 because of how the
> frontend/backend protocol works. So you are seeing some oddities because
> of some implementation details and you should not use auto-commit with
> batch statements.
>
> Kris Jurka
Direct knowledge and experience to the rescue. Thank you Kris for staying
within ear shot.
danap.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: danap@ttc-cmc.net
Subject: Re: Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc)
In-Reply-To: <50CB6094.3000905@ttc-cmc.net>
References: <50CB6094.3000905@ttc-cmc.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