jokerCoCo commented on issue #2081:
URL:
https://github.com/apache/incubator-hugegraph/issues/2081#issuecomment-1376825086
更新一下,查看后台hugegraph-server.log日志发现如下问题:
[gremlin-server-exec-6]2023-01-10 14:35:16,879[INFO ] | Remove left index:
v[1000001], query: `Query * from VERTEX where [3 >= 10]` |
[gremlin-server-exec-8]2023-01-10 14:35:16,879[INFO ] | Remove left index:
v[1000002], query: `Query * from VERTEX where [3 >= 10]` |
[gremlin-server-exec-6]2023-01-10 14:35:16,879[INFO ] | Remove left index:
v[1000003], query: `Query * from VERTEX where [ 3 >= 10]` |
查看hugegraph-master源码如下:
` protected Id asyncRemoveIndexLeft(ConditionQuery query,
HugeElement element) {
LOG.info("Remove left index: {}, query: {}", element, query);
RemoveLeftIndexJob job = new RemoveLeftIndexJob(query, element);
HugeTask<?> task = EphemeralJobBuilder.of(this.graph())
.name(element.id().asString())
.job(job)
.schedule();
return task.id();
}`
使用“g.V().has(’age‘,
gte(threshold)).out().path()”好像是为图中每个节点都创建一个异步任务,最终导致查询任务数超出限制。
之后改为g.V().where(values(’age‘), is(gte(threshold))).out().path()正常。这是否是bug?
个人还有下面一个疑问:
我给age创建了索引,使用values的方式是否可以走索引?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]