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

feat: finalize changeset file format #14

Open
yihuang opened this issue Dec 13, 2022 · 0 comments
Open

feat: finalize changeset file format #14

yihuang opened this issue Dec 13, 2022 · 0 comments
Assignees

Comments

@yihuang
Copy link
Collaborator

yihuang commented Dec 13, 2022

  • The changeset file format should be usable by versiondb directly.
  • It should support a range of versions in the same file to avoid too many small files.
  • It should support streaming reading/writing.
  • Secondly indexed can be created separately.
  • Detect and recover file corruption happens at the end.
version: int32
size: int32  # the total size of kv-pairs, so we can skip versions relatively fast.
kv-pairs: length prefixed proto msg
class StoreKVPair(ProtoEntity):
  delete = Field('bool', 1)
  key = Field('bytes', 2)
  value = Field('bytes', 3)
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 a pull request may close this issue.

1 participant