Skip to content

fix(Dgraph): Queue keys for rollup during mutation. #6145

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

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Aug 6, 2020

Right now, keys are only added for rollups during queries. Keys that
only receive queries will not be rolled up until they are queried, which
can cause issues and slowness.

Fixes DGRAPH-2202


This change is Reviewable

Right now, keys are only added for rollups during queries. Keys that
only receive queries will not be rolled up until they are queried, which
can cause issues and slowness.

Fixes DGRAPH-2202
@martinmr martinmr requested a review from manishrjain as a code owner August 6, 2020 23:18
@martinmr martinmr changed the title Queue keys for rollup during mutation. fix(Dgraph): Queue keys for rollup during mutation. Aug 6, 2020
Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

Looks good to me. Get it reviewed by @parasssh

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: may want to add a UT and/or test with increment tool.

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

@martinmr
Copy link
Contributor Author

martinmr commented Aug 7, 2020

I verified with the live loader and I see rollups happening.

@martinmr martinmr merged commit 3ea5efe into master Aug 7, 2020
@martinmr martinmr deleted the martinmr/rollup-mutations branch August 7, 2020 18:43
martinmr added a commit that referenced this pull request Aug 7, 2020
Right now, keys are only added for rollups during queries. Keys that
only receive queries will not be rolled up until they are queried, which
can cause issues and slowness.

Fixes DGRAPH-2202

(cherry picked from commit 3ea5efe)
martinmr added a commit that referenced this pull request Aug 7, 2020
Right now, keys are only added for rollups during queries. Keys that
only receive queries will not be rolled up until they are queried, which
can cause issues and slowness.

Fixes DGRAPH-2202

(cherry picked from commit 3ea5efe)
@manishrjain
Copy link
Contributor

When we do the mutations, we keep changes in memory and don't write to data to Badger. We write the data when we do the commit. The rollups should be triggered during the commit, not during the mutation. So, this change is wrong.

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.

4 participants