How to effectively check the existence of an edge

0

How to effectively check the existence of an edge? I tried using a query of this type:
g.V(srcId).out(edgeName).has(dstId).hasNext()
But after checking the performance, I realized that this is not an efficient query (it takes about 0.1-0.3 seconds) while extracting edges takes ~0.02

windox
asked 3 years ago184 views
2 Answers
0

I don't think this is a correct query. "has(dstId)" seems wrong, see https://tinkerpop.apache.org/docs/3.5.0/reference/#has-step . Perhaps you meant "hasId(dstId)"?

AWS
answered 3 years ago
0

Indeed, I made a mistake... Thanks

windox
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions