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

*Allow* periodic writes of the views to avoid loss of work when restarting #16

Merged
merged 2 commits into from
Jan 11, 2021

Conversation

black-puppydog
Copy link
Contributor

This is the commit of #12, but with the count at which the view is persisted being an initialization-time parameter. I just tested that in patchwork and it works nicely
@christianbundy I hope this is less controversial than your PR? I'd love to just bump the version for this repo instead of including the code directly from my fork.

christianbundy and others added 2 commits January 10, 2021 17:55
Problem: as Dominic pointed out, flumedb is general purpose, so even if one write
every 10K messages is a good compromise for ssb, it might be problematic
for other projects.

Solution: don't do periodic writes by default, but do allow passing a
parameter to the module to set them up.

Also I guess the periodic counter condition was inverted. :P
@christianbundy christianbundy merged commit 2a99346 into flumedb:master Jan 11, 2021
@christianbundy
Copy link
Member

Love it, thanks @black-puppydog!

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.

2 participants