【发布时间】:2021-02-28 15:20:02
【问题描述】:
在Redhsift表中使用批量插入(https://tool.oschina.net/uploads/apidocs/Spring-3.1.1/org/springframework/jdbc/core/simple/SimpleJdbcInsert.html#executeBatch(org.springframework.jdbc.core.namedparam.SqlParameterSource[]))插入记录时,spring框架会退回到一一插入,需要更多时间。
(main) org.springframework.jdbc.support.JdbcUtils: JDBC driver does not support batch updates
是否可以在 redshift 表中启用批量更新?
如果没有,有没有办法提高redshift中的表插入性能?
我试过 - 将 ?rewriteBatchedStatements=true 添加到 jdbcurl - 仍然一样。
【问题讨论】:
-
你使用的是官方的 Redshift JDBC 吗?
-
是的,我使用的是官方的 JDBC。
标签: jdbc amazon-redshift