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

(release/v20.03) Fix(Dgraph): Fix how visited nodes are detected in recurse queries. #6277

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Aug 26, 2020

Currently a node is marked as visited if it's been visited before AND
has been visited from the same source UID. In dense graphs, the second
condition leads to exponential growth of the data and to other issues
such as responses that are too big to encode. Removing this condition
fixes the issue.

Fixed tests and verified the new output makes sense.

Fixes DGRAPH-2337

(cherry picked from commit 3638c12)


This change is Reviewable

Docs Preview: Dgraph Preview

…6272)

Currently a node is marked as visited if it's been visited before AND
has been visited from the same source UID. In dense graphs, the second
condition leads to exponential growth of the data and to other issues
such as responses that are too big to encode.  Removing this condition
fixes the issue.

Fixed tests and verified the new output makes sense.

Fixes DGRAPH-2337

(cherry picked from commit 3638c12)
@martinmr martinmr requested a review from pawanrawal as a code owner August 26, 2020 17:28
@martinmr martinmr changed the title Fix(Dgraph): Fix how visited nodes are detected in recurse queries. (release/v20.03) Fix(Dgraph): Fix how visited nodes are detected in recurse queries. Aug 26, 2020
Copy link
Contributor

@parasssh parasssh left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @pawanrawal)

@parasssh parasssh merged commit de186bf into release/v20.03 Aug 26, 2020
@parasssh parasssh deleted the martinmr/cp-recurse03 branch August 26, 2020 18:57
martinmr added a commit that referenced this pull request Aug 27, 2020
parasssh pushed a commit that referenced this pull request Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants