The count query based on the vertex traversal edges is too slow!!!


wd w <wangwe...@...>
 


g.V().hasLabel("Instance").has("instanceId", P.within("12", "34")).bothE('Cause').has('enabled', true).as('e').bothV().has('instanceId', P.within('64', '123')).select('e').count();

The above count query executes very slowly, what method can be used to speed up its query.

I have created compositeIndex and  mixedIndex for instanceId, enabled.

How should I convert this query to a direct index query!

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