@BalusC碰到了头。如果您使用的是MySQL,请使用最新的驱动程序将 rewriteBatchedStatements = true
添加到您的连接字符串以使statement.addBatch()实际上创建批处理插入。
关于MySQL
JDBC性能的漂亮演示文稿:http
:
//assets.en.oreilly.com/1/event/21/Connector_J%20Performance%20Gems%20Presentation.pdf

@BalusC碰到了头。如果您使用的是MySQL,请使用最新的驱动程序将 rewriteBatchedStatements = true
添加到您的连接字符串以使statement.addBatch()实际上创建批处理插入。
关于MySQL
JDBC性能的漂亮演示文稿:http
:
//assets.en.oreilly.com/1/event/21/Connector_J%20Performance%20Gems%20Presentation.pdf