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

Do not load _everything_ in memory for bookkeeping #189

Merged
merged 41 commits into from
Apr 17, 2024
Merged

Conversation

jeromegn
Copy link
Member

This adds some more data in sqlite to keep memory usage down and reduce time-to-start-syncing considerably.

@jeromegn jeromegn marked this pull request as ready for review April 12, 2024 19:50
Copy link
Member Author

@jeromegn jeromegn left a comment

Choose a reason for hiding this comment

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

I'm a little concerned that Corrosion relies on perfect knowledge in bookkeeping to respond to other nodes. It's not different than before, but it is scary.

@jeromegn jeromegn marked this pull request as draft April 14, 2024 00:08
@jeromegn
Copy link
Member Author

Converting to draft because we should persist the gaps as soon as we detect a gap.

@jeromegn jeromegn marked this pull request as ready for review April 16, 2024 15:48
@jeromegn jeromegn merged commit 8b3ef0e into main Apr 17, 2024
4 checks passed
@jeromegn jeromegn deleted the reduced-bk branch April 17, 2024 14:07
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