Merge pull request #61863 from azat/dist/flush-settings-doc

Update documentation for SYSTEM FLUSH DISTRIBUTED SETTINGS
This commit is contained in:
robot-clickhouse 2024-03-25 17:07:57 +01:00 committed by GitHub
commit 01f537c409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,10 +180,16 @@ SYSTEM STOP DISTRIBUTED SENDS [db.]<distributed_table_name> [ON CLUSTER cluster_
Forces ClickHouse to send data to cluster nodes synchronously. If any nodes are unavailable, ClickHouse throws an exception and stops query execution. You can retry the query until it succeeds, which will happen when all nodes are back online.
You can also override some settings via `SETTINGS` clause, this can be useful to avoid some temporary limitations, like `max_concurrent_queries_for_all_users` or `max_memory_usage`.
``` sql
SYSTEM FLUSH DISTRIBUTED [db.]<distributed_table_name> [ON CLUSTER cluster_name]
SYSTEM FLUSH DISTRIBUTED [db.]<distributed_table_name> [ON CLUSTER cluster_name] [SETTINGS ...]
```
:::note
Each pending block is stored in disk with settings from the initial INSERT query, so that is why sometimes you may want to override settings.
:::
### START DISTRIBUTED SENDS
Enables background data distribution when inserting data into distributed tables.