Skip to content

graphd crashing when counting edges #4495

Answered by wey-gu
joruxs asked this question in Q&A
Discussion options

You must be logged in to vote

Dear @joruxs

For now, the equivalent query of above MATCH:

LOOKUP ON liked YIELD dst(edge) AS DstVID | YIELD count(*)

is more optimal from a resource-consuming perspective(ref).

But still as there is no count pushdown in storage side, they are all expensive in both query patterns now.

#4137

Another option is to leverage the stats job(async job), but it's limited to getting stats per edge type/tag:

(root@nebula) [basketballplayer]> SUBMIT JOB STATS
+------------+
| New Job Id |
+------------+
| 51         |
+------------+
Got 1 rows (time spent 49832/60813 us)

Tue, 09 Aug 2022 09:31:29 CST

(root@nebula) [basketballplayer]> SHOW JOBS
+--------+----------------------+------------+--------…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@joruxs
Comment options

@wey-gu
Comment options

wey-gu Aug 9, 2022
Collaborator

@joruxs
Comment options

@wey-gu
Comment options

wey-gu Aug 9, 2022
Collaborator

Answer selected by joruxs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants