skip to Main Content

Amazon web services – Optimize neptune query while using repeat & times

I have the following neptune query g.V().hasLabel('User') .has('user_id', 1004) .repeat(both('USES_UPI','USES_ACCOUNT','USES_HARDWARE_ID','USES_GAID','HAS_COOKIES').simplePath().dedup()) .times(3) .hasLabel('Gaid') .dedup() .count() and it's taking too much time. I tried profiling the query Original Traversal ================== [GraphStep(vertex,[]), HasStep([~label.eq(User), user_id.eq(159017810)]), RepeatStep([VertexStep(BOTH,[USES_UPI, USES_ACCOUNT, USES_HARDWARE_ID, USES_GAID, HAS_COOKIES],vertex), PathFilterStep(simple,null,null), DedupGlobalStep(null,null), RepeatEndStep],until(loops(3)),emit(false)), HasStep([~label.eq(Gaid)]),…

VIEW QUESTION
Back To Top
Search