You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p = Point("my_measurement").tag("location", "Prague").field("temperature", 25.3)
@@ -72,7 +77,22 @@ val_count = 0
72
77
for row in csv_result:
73
78
for cell in row:
74
79
val_count +=1
80
+
```
75
81
82
+
## How to use
76
83
84
+
### Writes
77
85
78
-
```
86
+
The [WriteApiClient](https://github.com/bonitoo-io/influxdb-client-python/blob/master/influxdb2/client/write_api.py) that supports synchronous, asynchronous and batching writes into InfluxDB 2.0.
87
+
88
+
The write client could be configured by `WriteOptions`:
89
+
90
+
| Property | Description | Default Value |
91
+
| --- | --- | --- |
92
+
|[**write_type**](#write_type)| how the client writes data ; allowed values: `batching`, `asynchronous`, `synchronous`|`batching`|
93
+
|**batch_size**| the number of data point to collect in batch |`1000`|
94
+
95
+
##### write_type
96
+
*`batching` - data are writes in batches defined by `batch_size`, `flush_interval`, ...
97
+
*`asynchronous` - data are writes in asynchronous HTTP request
98
+
*`synchronous` - data are writes in synchronous HTTP request
0 commit comments