Re: Query Optimisation


Vinayak Bali
 

Hi Marc,

Thank you for your reply. I will try to report this issue on janusgraph repository. Regarding the work around you suggested, if possible please share the updated query with work around for query1. That will be helpful for me to replicate the same. 

Thank & Regards,

Vinayak

On Mon, 10 May 2021, 6:03 pm , <hadoopmarc@...> wrote:
Hi Vinayak,

If you would bother to demonstrate this behavior with a reproducible, generated graph, you can report it as an issue on github.

For now, you can only look for workarounds:
 - combine the four clauses outside of gremlin
 - try g.V()......................fold().V()......................fold().V().......................fold().V()......................... instead of the union, although I am not sure janusgraph will use the index for the repeated V() steps. The fold() steps ensure that the V() steps are run exactly once.

Best wishes,    Marc

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.