clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

dose ck support rewriteBatchedStatements when i use ck jdbc client

Open z7658329 opened this issue 1 year ago • 1 comments

in my case ,i have used jdbc: https://github.com/ClickHouse/clickhouse-java/blob/main/examples/jdbc/src/main/java/com/clickhouse/examples/jdbc/Basic.java

here is my config: spring: datasource: url: jdbc:ch://xxxxxxxxx/default?rewriteBatchedStatements=true username: password: driver-class-name: com.clickhouse.jdbc.ClickHouseDriver hikari: maximum-pool-size: 500 minimum-idle: 50 connection-timeout: 5000

write code: i use jdbcTemplate: jdbcTemplate.batchUpdate(batchInsertSql, new BatchPreparedStatementSetter()

dose ck support rewriteBatchedStatements param when i use ck jdbc client ?

z7658329 avatar Dec 27 '23 10:12 z7658329

@z7658329 Can you please attach a code snippet

mzitnik avatar Jan 01 '24 07:01 mzitnik