How to enable batch mode in Java for InfluxDB 2.0?

mfrice
Tue, 24 Aug 2021 05:36:10 +0000
Client SDKs

The 1.8 version allows me to enable batching of single Point writes as easy as follows:

influxDB.enableBatch(100000, 10000, TimeUnit.MILLISECONDS);

Could you tell me what is the equivalent of 2.0 version to enable batch mode? It would be better if you could give me a Java code snippet.

6 posts - 2 participants