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

fix(Dgraph): update reverse index when updating single UID predicates. #6748

Merged
merged 4 commits into from Oct 27, 2020

Conversation

danielmai
Copy link
Contributor

@danielmai danielmai commented Oct 16, 2020

Fixes the test OverwriteUidPredicatesReverse added in the previous PR #6746.

When updating a single uid predicate with a reverse index, the existing entry in the
reverse index should be deleted first.

Fixes DGRAPH-1738

(cherry picked from commit 5b70fe8)


This change is Reviewable

Docs Preview: Dgraph Preview

#5868)

When updating a single uid predicate with a reverse index, the existing entry in the
reverse index should be deleted first.

Fixes DGRAPH-1738

(cherry picked from commit 5b70fe8)
Copy link
Contributor Author

@danielmai danielmai left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @manishrjain and @martinmr)


posting/index.go, line 430 at r1 (raw file):

addReverseAndCountMutation

Looks like release/v1.2 needs #4755 to pick up this function too. Probably best to just remove the test so we're not introducing so many changes into v1.2 right now.

mangalaman93 and others added 2 commits October 22, 2020 10:20
We used to compute reverse count indexes twice while reindexing.
First, while computing reverse edges, and then later while explicitly
computing reverse count index. Now, we use a different function
while reindexing reverse edges and do not compute the reverse
count indexes there any more.
#5868)

When updating a single uid predicate with a reverse index, the existing entry in the
reverse index should be deleted first.

Fixes DGRAPH-1738
@danielmai danielmai merged commit 30baf66 into release/v1.2 Oct 27, 2020
@danielmai danielmai deleted the danielmai/v1.2-uid-rev branch October 27, 2020 18:22
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.

None yet

4 participants