Merge pull request #7568 from andrei-karpliuk/doc_ru_en_system_stop_start_merges

Added brief description for queries system stop|start merges
This commit is contained in:
alexey-milovidov 2019-11-02 00:56:04 +03:00 committed by GitHub
commit b8404a7779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -11,6 +11,8 @@
- [STOP DISTRIBUTED SENDS](#query_language-system-stop-distributed-sends)
- [FLUSH DISTRIBUTED](#query_language-system-flush-distributed)
- [START DISTRIBUTED SENDS](#query_language-system-start-distributed-sends)
- [STOP MERGES](#query_language-system-stop-merges)
- [START MERGES](#query_language-system-start-merges)
## RELOAD DICTIONARIES {#query_language-system-reload-dictionaries}
@ -85,4 +87,24 @@ Enables background data distribution when inserting data into distributed tables
SYSTEM START DISTRIBUTED SENDS [db.]<distributed_table_name>
```
### STOP MERGES {#query_language-system-stop-merges}
Provides possibility to stop background merges for tables in the MergeTree family:
```sql
SYSTEM STOP MERGES [[db.]merge_tree_family_table_name]
```
!!! note "Note":
`DETACH / ATTACH` table will start background merges for the table even in case when merges have been stopped for all MergeTree tables before.
### START MERGES {#query_language-system-start-merges}
Provides possibility to start background merges for tables in the MergeTree family:
```sql
SYSTEM START MERGES [[db.]merge_tree_family_table_name]
```
[Original article](https://clickhouse.yandex/docs/en/query_language/system/) <!--hide-->

View File

@ -11,6 +11,8 @@
- [STOP DISTRIBUTED SENDS](#query_language-system-stop-distributed-sends)
- [FLUSH DISTRIBUTED](#query_language-system-flush-distributed)
- [START DISTRIBUTED SENDS](#query_language-system-start-distributed-sends)
- [STOP MERGES](#query_language-system-stop-merges)
- [START MERGES](#query_language-system-start-merges)
## RELOAD DICTIONARIES {#query_language-system-reload-dictionaries}
@ -82,5 +84,24 @@ SYSTEM FLUSH DISTRIBUTED [db.]<distributed_table_name>
SYSTEM START DISTRIBUTED SENDS [db.]<distributed_table_name>
```
### STOP MERGES {#query_language-system-stop-merges}
Позволяет остановить фоновые мержи для таблиц семейства MergeTree:
```sql
SYSTEM STOP MERGES [[db.]merge_tree_family_table_name]
```
!!! note "Note":
`DETACH / ATTACH` таблицы восстанавливает фоновые мержи для этой таблицы (даже в случае отключения фоновых мержей для всех таблиц семейства MergeTree до `DETACH`).
### START MERGES {#query_language-system-start-merges}
Включает фоновые мержи для таблиц семейства MergeTree:
```sql
SYSTEM START MERGES [[db.]merge_tree_family_table_name]
```
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/system/) <!--hide-->