Adding a no_sync documentation to get-started page (#5826)

pull/5861/head
meelahme 2025-02-25 17:17:36 -08:00
parent 471e9f240d
commit f01a9ab3e7
1 changed files with 7 additions and 0 deletions

View File

@ -323,6 +323,13 @@ For more information, see [diskless architecture](#diskless-architecture).
> 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.
> Future enhancements will include an API parameter that lets requests return without waiting for the WAL flush.
##### no_sync Write Option
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.
- Default behavior(`no_sync=false`): Ensures data is persisted before acknowledging writes. Thus, reducing the risk of data loss.
- With `no_sync=true`: Improves write performance but increases the risk of data loss in case of crashes before WAL persistence.
#### Create a database or Table
To create a database without writing data, use the `create` subcommand--for example: