File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
content/shared/v3-core-get-started Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -334,11 +334,20 @@ InfluxDB provides a `no_sync` write option to allow faster response of write req
334
334
- Default behavior(` no_sync=false` ): Ensures data is persisted before acknowledging writes. Thus, reducing the risk of data loss.
335
335
- With ` no_sync=true` : Improves write performance but increases the risk of data loss in case of crashes before WAL persistence.
336
336
337
+ If you are using the HTTP API, here is an example of how to enable the ` no_sync` option:
338
+
339
+ ` ` ` sh
340
+ curl -v " http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&no_sync=true" \
341
+ --data-raw " home,room=Sunroom temp=96
342
+ home,room=Sunroom temp=hi"
343
+ ` ` `
344
+
337
345
If you are using the CLI, here is an example of how to enable the ` no_sync` option:
338
346
339
347
` ` ` sh
340
- influx write --bucket=mydb --org=my_org --token=my-token --no-sync
348
+ influxdb3 write --bucket=mydb --org=my_org --token=my-token --no-sync
341
349
` ` `
350
+ Using ` no_sync=true` is best when prioritizing high-throughput writes over absolute durability.
342
351
343
352
# ### Create a database or Table
344
353
You can’t perform that action at this time.
0 commit comments