incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Feature] 是否可以提供一个索引修复工具

Open movee8 opened this issue 3 years ago • 2 comments

Feature Description (功能描述)

在有存量数据的情况下创建索引,当前有可能会失败,索引状态为invalid,是否可以提供一个索引修复工具,在线修复索引类相关问题?

movee8 avatar Nov 30 '21 03:11 movee8

如果后端是分布式存储, 倒是建议用 bulkLoad 的方式, 重新读点/边, 直接生成索引, 整个洗一遍数据. 感觉这个效率比单机的工具也快得多.

至于单机的容量的话, 似乎清空表直接重建索引也可以考虑.

imbajin avatar Dec 01 '21 11:12 imbajin

请尝试使用 index rebuild 接口对索引进行修复,具体见:https://hugegraph.github.io/hugegraph-doc/clients/restful-api/rebuild.html

javeme avatar Dec 01 '21 13:12 javeme