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

Add partial snapshotting support #36

Merged
merged 5 commits into from
Dec 12, 2021
Merged

Add partial snapshotting support #36

merged 5 commits into from
Dec 12, 2021

Conversation

kelindar
Copy link
Owner

@kelindar kelindar commented Dec 4, 2021

This PR adds WriteTo and ReadFrom methods on the collection as a second step to add durability. This allows to encode/decode an entire collection. In its current form, all write transactions need to be stopped prior to calling WriteTo() method, otherwise the snapshot might be in inconsistent state (partially written transactions).

Given that, this change is still does not provide full durability for the data store, given that I still need to implement redo logging (wal) and make sure that the restore can re-build a consistent state of the collection.

@kelindar kelindar changed the title [WIP] Add snapshotting support Add snapshotting support Dec 12, 2021
@kelindar kelindar changed the title Add snapshotting support Add partial snapshotting support Dec 12, 2021
@kelindar kelindar merged commit 844e40f into main Dec 12, 2021
@kelindar kelindar deleted the snap branch December 12, 2021 17:26
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.

1 participant