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
질문됨 3년 전188회 조회
2개 답변
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
답변함 3년 전
0

Indeed, I made a mistake... Thanks

windox
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠