-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support recursive queries #647
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
Conversation
|
Review status: 0 of 4 files reviewed at latest revision, 5 unresolved discussions. query/query.go, line 233 at r1 (raw file):
please put a comment that it can happen in query/query.go, line 551 at r1 (raw file):
do we call query/query.go, line 556 at r1 (raw file):
should we use query/query.go, line 986 at r1 (raw file):
it looks like this was not required ? query/query_test.go, line 485 at r1 (raw file):
i thought, depth Comments from Reviewable |
|
Review status: 0 of 4 files reviewed at latest revision, 5 unresolved discussions. query/query.go, line 233 at r1 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Done. query/query.go, line 551 at r1 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Fill can be called for any node. Yeah, for stricter handling, we can check the query/query.go, line 556 at r1 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Done. query/query.go, line 986 at r1 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
This would be the right flow. Currently, It wouldn't make a difference as they do the same thing. query/query_test.go, line 485 at r1 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
We do get friends of friends, but since we don't fetch the attr, it's empty. Comments from Reviewable |
|
Reviewed 4 of 4 files at r2. query/query_test.go, line 485 at r1 (raw file): Previously, ashwin95r (Ashwin Ramesh) wrote…
Went through this. Given we treat everything as an edge away, what we're currently doing makes sense. query/recurse.go, line 14 at r2 (raw file):
How about just a map[string]struct{}, and use fmt.Sprintf("%s|%d|%d", ...) for key. query/recurse.go, line 49 at r2 (raw file):
cleanup query/recurse.go, line 103 at r2 (raw file):
return query/recurse.go, line 181 at r2 (raw file):
next <- true query/recurse.go, line 187 at r2 (raw file):
if err == ... Not else if. query/recurse.go, line 189 at r2 (raw file):
No need for else here. query/recurse.go, line 200 at r2 (raw file):
next <- false Comments from Reviewable |
|
Review status: 3 of 4 files reviewed at latest revision, 8 unresolved discussions. query/recurse.go, line 14 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 49 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 103 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 181 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 187 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 189 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. query/recurse.go, line 200 at r2 (raw file): Previously, manishrjain (Manish R Jain) wrote…
Done. Comments from Reviewable |
|
Review status: 3 of 4 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. query/recurse.go, line 91 at r3 (raw file):
query/recurse.go, line 113 at r3 (raw file):
query/recurse.go, line 140 at r3 (raw file):
usually, error channels are there to mark the done of execution.. query/recurse.go, line 151 at r3 (raw file):
a comment about query/shortest.go, line 191 at r3 (raw file):
:) Comments from Reviewable |
|
Review status: 3 of 4 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. Comments from Reviewable |
|
Review status: 3 of 4 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. query/recurse.go, line 91 at r3 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Oops yes. Thanks for the catch. query/recurse.go, line 113 at r3 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Right. Since I moved the filtering step, it doesn't change now. query/recurse.go, line 140 at r3 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Done. query/recurse.go, line 151 at r3 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
No, it actually doesn't but just for safety. Also, I fixed the case where it could have been 2 (In shortest path) query/shortest.go, line 191 at r3 (raw file): Previously, ashishnegi (Ashish Negi) wrote…
Yeah Here! Comments from Reviewable |
|
Merged. |
|
no doc? |
|
@yinrong Recurse query docs can be found here: https://docs.dgraph.io/query-language/#recurse-query |
persistence was broken probably by updating the DB, this fixes it by storing the latest block hash at a known key in the db
This change is