如何提高批量删除顶点属性的效率
Open
improvement
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 636
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 14
Description
### Expected behavior 期望表现
提高 批量删除顶点属性的效率
### Actual behavior 实际表现
在单线程中每秒执行20条左右
### Steps to reproduce the problem 复现步骤
现有4亿个节点的属性,在图数据库的外部维护了一个所有节点vertexId的file,现在从file中读取到vertexId循环执行下面代码进行节点属性的删除。
HugeClient hugeClient = new HugeClient("http://localhost:8080", "hugegraph");
GraphManager graph = hugeClient.graph();
for (Long vertexId:vertexIds){
Vertex vertex = graph.getVertex(vertexId);
vertex.removeProperty("paperFamilyCount");
}
### Specifications of environment 环境信息
- hugegraph version: 0.10.4
- operating system: centos 7.4, 16 CPUs, 128G RAM
- hugegraph backend: cassandra 3.10, cluster with 3 nodes, 1 x 1TB SSD disk each node
Contributor guide
Assessment
This issue has not been assessed yet.