diff --git a/docs/manual-EN/3.build-develop-and-administration/5.storage-service-administration/compact.md b/docs/manual-EN/3.build-develop-and-administration/5.storage-service-administration/compact.md index 62b2de6faa1..995f99645f5 100644 --- a/docs/manual-EN/3.build-develop-and-administration/5.storage-service-administration/compact.md +++ b/docs/manual-EN/3.build-develop-and-administration/5.storage-service-administration/compact.md @@ -5,9 +5,11 @@ This document will walk you through the concept of Compact. - The default RocksDB compact style. You can use the `UPDATE CONFIG` statement as follows to start or stop it. It merges sst files in small scale during data writing to speed up the data reading in a short time. When enabled, this compaction is automatically performed during the daytime. ```ngql -nebula> UPDATE CONFIG storage:disable_auto_compactions=false/true; +nebula> UPDATE CONFIGS storage:rocksdb_column_family_options = {disable_auto_compactions = true}; ``` +By default, the `disable_auto_compactions` parameter is set to `false`. Before data import, we recommend that you set the parameter to `true`. When the data is imported, you must set the parameter to its default value, and then run the `SUBMIT JOB COMPACT` command to perform the customized compaction. + - The customized compact style for **Nebula Graph**. You can run the `SUBMIT JOB COMPACT` command to start it. You can use it to perform large scale background operations such as sst files merging in large scale or TTL. This kind of compact is usually performed after midnight. In addition, you can modify the number of threads in both methods by the following command. You can decrease the threads during daytime and increase it at night.