Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear disk space after compaction #1347

Merged
merged 4 commits into from
Dec 30, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ DROP SPACE [IF EXISTS] <graph_space_name>;

`IF EXISTS`关键字可以检测待删除的图空间是否存在,只有存在时,才会删除图空间。

`DROP SPACE`语句不会立刻删除硬盘上对应图空间的目录和文件,请使用`USE`语句指定其他任意图空间,然后执行`SUBMIT JOB COMPACT`。
`DROP SPACE`语句不会立刻删除硬盘上对应图空间的目录和文件。

如需删除无效空间的目录和文件:

1. 在 Storage服务的配置文件中设置`auto_remove_invalid_space=true`。关于 Storage 服务的配置文件的路径,参见 [Storage 服务配置](../../5.configurations-and-logs/1.configurations/4.storage-config.md)。

2. 重启 Storage 服务。具体操作,参见[启动服务](../../4.deployment-and-installation/manage-service.md)。

3. 使用`USE`语句指定其他任意图空间,执行`SUBMIT JOB COMPACT`。
SuperYoko marked this conversation as resolved.
Show resolved Hide resolved

!!! caution

Expand Down