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

Flush memtable when it reaches multiple megabytes #10

Closed
Terkwood opened this issue Jul 24, 2021 · 0 comments
Closed

Flush memtable when it reaches multiple megabytes #10

Terkwood opened this issue Jul 24, 2021 · 0 comments

Comments

@Terkwood
Copy link
Owner

Terkwood commented Jul 24, 2021

strategy

Run a GenServer which holds a Map tracking size per key and an int tracking total memtable size. Update total incrementally. Trigger flush when reaching limit. Clear GenServer on flush

PXL_20210801_133219081-01

Make sure you size both the key and the value

this ticket creates some debt

For #51 (binary SSTables) , we need to consider this new section of code

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

No branches or pull requests

1 participant