Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for arc direction to v3 node #1455

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

n-h-diaz
Copy link
Contributor

Adds base query for in-arcs

Still TODO for Node:

  • SingleProp filtering
  • Decorators
  • BracketProps
  • Filters
  • Multiple hops

@n-h-diaz n-h-diaz requested a review from keyurva November 14, 2024 22:59
Copy link
Contributor

@keyurva keyurva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

getEdgesByObjectID: `
GRAPH DCGraph MATCH (n:Node)-[e:Edge
WHERE
e.object_id IN UNNEST(@ids)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we created an index by object_id? Any difference in performance between the 2 queries?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep there's an object->predicate index. So far for these smaller queries it seems okay, but in-arcs tend to be much larger than out-arcs so this will probably need pagination eventually

@n-h-diaz n-h-diaz merged commit 13c3cdd into datacommonsorg:master Nov 14, 2024
3 checks passed
@n-h-diaz n-h-diaz deleted the m branch November 14, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants