Search Postgresql Archives

Re: Fwd: [JDBC] Fwd: [ADMIN] Confuse about the behaveior of PreparedStatement.executeBatch (jdbc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Haifeng Liu wrote:

> Can anyone please figure out this ?

This was just answered on the JDBC list by Kris Jurka:

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.

-Kevin


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux