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

Refactor shadow WAL to use segments #225

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Refactor shadow WAL to use segments #225

merged 1 commit into from
Jul 23, 2021

Conversation

benbjohnson
Copy link
Owner

@benbjohnson benbjohnson commented Jul 11, 2021

This pull request refactors the shadow WAL to store individual segments instead of simply appending on to WAL files. This provides the ability to transactionally store segments and to separate them along SQLite transaction boundaries. These characteristics are necessary to enable live replication so that the replicas do not need to compute transaction boundaries on every read.

This is a draft pull request and needs additional cleanup and testing.

Fixes #191

@benbjohnson benbjohnson self-assigned this Jul 11, 2021
@benbjohnson benbjohnson force-pushed the db-wal-segments branch 4 times, most recently from 9e30408 to 6eb2907 Compare July 16, 2021 21:56
@benbjohnson benbjohnson marked this pull request as ready for review July 16, 2021 21:57
@benbjohnson benbjohnson merged commit 77274ab into main Jul 23, 2021
@benbjohnson benbjohnson deleted the db-wal-segments branch July 23, 2021 13:46
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.

Store shadow WAL as a collection of compressed wal segments
1 participant