alibaba / alibaba/GraphScope

[BUG] The case of iterate() + limit() seems not efficient

Open
#2,470 0 comments 0 reactions 1 assignee Claimed by @lnfjpt View on GitHub
component:gie performance
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the bug**
A clear and concise description of what the bug is.

On personal mac, run the following the queries on LDBC graph with factor=1 with worker_num=32,
Query1:`g.V().hasLabel("PERSON").both("1..10").limit(100000)` costs 6s,
Query2: `g.V().hasLabel("PERSON").both("1..2").limit(100000)` costs 0.5s,
and `g.V().hasLabel("PERSON").both("1..2").count()` is 8366255.

In a sense, Query1 should not be slower than Query2 due to the early termination optimization. However, it is slower.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.