Toggle navigation
Help
Log In
Help
Log In
Home
Messages
Hashtags
Subgroups
Calendar
×
×
×
Close
Likes
janusgraph-users@lists.lfaidata.foundation
Messages
Union Query Optimization
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
previous page
#5825
next page
Union Query Optimization
Vinayak Bali
#5825
Hi All,
I need to select multiple nodes and edges and display the content in v1 - e - v2 format. The query generated is as follows:
g.V().union(has('title', 'V1').as('v1').outE().hasLabel('E1').as('e').inV().has('title', 'V2').as('v2'),has('title', 'V2').as('v1').union(outE().hasLabel('E2').as('e').inV().has('title', 'V2'),outE().hasLabel('E3').as('e').inV().has('title', 'V3')).as('v2')).select('v1','e','v2').by(valueMap().by(unfold()))
It throws the warning:
05:20:21 WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [()]. For better performance, use indexes
How can we optimize the query may be without a union step?
Thanks & Regards,
Vinayak
More
All Messages By This Member
previous page
View All 6 Messages In Topic
next page
previous page
#5825
next page
Join
janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to LF AI and Data Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of janusgraph-users@lists.lfaidata.foundation?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More Options
More
Home
Hashtags
Subgroups
Calendar
Terms
Toggle navigation
Terms
©
2023
Groups.io