Skip to content

Commit d6109b3

Browse files
committed
adding CLI example to no_sync write option
1 parent c09d17f commit d6109b3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

content/shared/v3-core-get-started/_index.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,20 @@ For more information, see [diskless architecture](#diskless-architecture).
327327
> Because InfluxDB sends a write response after the WAL file has been flushed to the configured object store (default is every second), individual write requests might not complete quickly, but you can make many concurrent requests to achieve higher total throughput.
328328
> Future enhancements will include an API parameter that lets requests return without waiting for the WAL flush.
329329
330+
##### No sync write option
330331
331-
##### no_sync Write Option
332-
333-
InfluxDB provides a no_sync write option to allow faster response of write request by skipping the wait for WAL presistence. When `no_sync=true`, InfluxDB writes data to WAL but immediately acknowledges the write request without waiting for persistence.
332+
InfluxDB provides a `no_sync` write option to allow faster response of write request by skipping the wait for WAL presistence. When `no_sync=true`, InfluxDB writes data to WAL but immediately acknowledges the write request without waiting for persistence.
334333
335334
- Default behavior(`no_sync=false`): Ensures data is persisted before acknowledging writes. Thus, reducing the risk of data loss.
336335
- With `no_sync=true`: Improves write performance but increases the risk of data loss in case of crashes before WAL persistence.
337336
338-
#### Create a database or table
337+
If you are using the CLI, here is an example of how to enable the `no_sync` option:
338+
339+
```sh
340+
influx write --bucket=mydb --org=my_org --token=my-token --no-sync
341+
```
342+
343+
#### Create a database or Table
339344
340345
To create a database without writing data, use the `create` subcommand--for example:
341346

0 commit comments

Comments
 (0)