magno86
October 23, 2025, 12:52pm
1
hello,
is there any documentation.test or example available on batch writing for influxDB3 in c#?
I managed testing batch wiring in python in the past by configuring the “WriteOptions”.
# === Configure InfluxDB client with batching ===
write_options = WriteOptions(
batch_size=20,
flush_interval=2000,
jitter_interval=500,
retry_interval=5000,
max_retries=5,
max_retry_delay=30000
)
wco = write_client_options(write_options=write_options)
client = InfluxDBClient3(
host=INFLUXDB_HOST,
token=INFLUXDB_TOKEN,
org=INFLUXDB_ORG,
database=INFLUXDB_DATABASE,
write_client_options=wco
)
I fail to find documentation how to do this in c# and the class WriteOption seems not to have the same purpose.
/// Database = "my-database",
/// WriteOptions = new WriteOptions
/// {
/// Precision = WritePrecision.S,
/// GzipThreshold = 4096,
/// NoSync = false
/// }
/// });
/// </code>
/// </summary>
public class WriteOptions : ICloneable
{
/// <summary>
/// The default precision to use for the timestamp of points if no precision is specified in the write API call.
/// </summary>
public WritePrecision? Precision { get; set; }
/// <summary>
/// Tags added to each point during writing. If a point already has a tag with the same key, it is left unchanged.
/// <example>
/// <code>
/// Database = "my-database",
/// WriteOptions = new WriteOptions
/// {
/// Precision = WritePrecision.S,
/// GzipThreshold = 4096,
/// NoSync = false
/// }
/// });
/// </code>
/// </summary>
public class WriteOptions : ICloneable
{
/// <summary>
/// The default precision to use for the timestamp of points if no precision is specified in the write API call.
/// </summary>
public WritePrecision? Precision { get; set; }
/// <summary>
/// Tags added to each point during writing. If a point already has a tag with the same key, it is left unchanged.
/// <example>
/// <code>
has someone any example or good pointer here?
thanks a lot in advance
suyash
October 27, 2025, 1:37pm
2
@bednar can you please shed some insight here. Thanks!