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: remove extra writes when uploading chunked data #405

Merged
merged 4 commits into from
Oct 28, 2022

Conversation

ghost
Copy link

@ghost ghost commented Oct 27, 2022

/kind fix

What this PR does / Why we need it:
During chunk upload, open saves is doing multiple write operations on the same chunk entity. We have removed one write to follow best practices for Datastore and reduce database contention.

Which issue(s) this PR fixes:
Closes #403

Special notes for your reviewer:

@ghost ghost requested review from vasconcelosvcd and hongalex October 27, 2022 22:00
Copy link
Collaborator

@hongalex hongalex left a comment

Choose a reason for hiding this comment

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

One test is failing because of the removal of InsertChunkRef

@hongalex hongalex merged commit b0082ed into main Oct 28, 2022
@hongalex hongalex deleted the fix-remove-extra-write branch October 28, 2022 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove more than once chunkRef write
1 participant