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

Use pre-allocated protobufs during backups. #5508

Merged
merged 2 commits into from May 27, 2020
Merged

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented May 22, 2020

Backups convert the values stored in disk into an intermediate format
(for backwards compatibility reasons). This creates a lot of
pb.PostingList and pb.BackupPostingList objects that are discarded
almost immediatly. Using preallocated protobufs (one per thread used by
the stream object) should avoid these allocations altogether.

Fixes DGRAPH-1312


This change is Reviewable

Docs Preview: Dgraph Preview

@martinmr martinmr requested review from manishrjain and a team as code owners May 22, 2020 22:02
@martinmr
Copy link
Contributor Author

I had to make some changes to cherry-pick this commit so I am letting the test suite run.

Backups convert the values stored in disk into an intermediate format
(for backwards compatibility reasons). This creates a lot of
pb.PostingList and pb.BackupPostingList objects that are discarded
almost immediatly. Using preallocated protobufs (one per thread used by
the stream object) should avoid these allocations altogether.

Fixes DGRAPH-1312
Copy link
Contributor

@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.

:lgtm:

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@danielmai danielmai merged commit bdc7c1d into release/v1.2 May 27, 2020
@joshua-goldstein joshua-goldstein deleted the martinmr/cp-backup branch August 11, 2022 20:44
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

2 participants