spring-data-influxdb
spring-data-influxdb copied to clipboard
thes properties is not found 'enableBatch'
the properties is not found 'enableBatch' configuration
Hey @gumutianqi, atm it's not clear to me what do you mean. However, to write batches to the database you could use the following template method: public void write(final List<T> payload)
.
Cheers Michael
I'm sorry,my problem, in the file InfluxDBProperties.java
, not found the about the enableBatch
configuration, this config properties is not write batches, that like Delay batch write
。
this is global configuration, so should Configuration to InfluxDBProperties.java
as code:
InfluxDB influxDB = InfluxDBFactory.connect(influxUrl, influxUser, influxPassword);
influxDB.setDatabase(dbName);
influxDB.setRetentionPolicy("autogen");
// influxdb enableBatch // Flush every 2000 Points, at least every 100ms
influxDB.enableBatch(2000, 100, TimeUnit.MILLISECONDS);
influxDB.write(...)
....