8000 Do not write headers until commit by pwinckles · Pull Request #44 · fcrepo/fcrepo-storage-ocfl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Do not write headers until commit #44

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 2 commits into from
Sep 30, 2021
Merged

Conversation

pwinckles
Copy link
Collaborator

JIRA Ticket: https://fedora-repository.atlassian.net/browse/FCREPO-3771

What does this Pull Request do?

When creating binaries a binary resource and a binary description are created. Due to how the "touching" works, this was resulting in the binary's resources headers being serialized to disk multiple times. This change resolves the problem by deferring the serialization of any headers until the session is committed.

This improves write latency on systems with slow IO.

How should this be tested?

Everything should work the same as before, and creating binary resources should be faster.

Interested parties

@fcrepo/committers

@dbernstein dbernstein merged commit 26cd0ff into fcrepo:main Sep 30, 2021
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.

2 participants
0