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

Expose incremental journal replay #25

Open
publicocean0 opened this issue Oct 24, 2017 · 2 comments
Open

Expose incremental journal replay #25

publicocean0 opened this issue Oct 24, 2017 · 2 comments
Assignees

Comments

@publicocean0
Copy link

I have a counter to update every add and remove . This counter is in memory for evoiding overhead in writes . A periodic thread save the values in db . The problem is if there is crash before last update is done . For solving it i might set the limit for compactation .
Pseudo code
Update counter and snapshot sequence values in a kv cell.
Update the tail limit for compactation(go forward )

If there is a crash the last part of log file is not re compacted . On bots trap It is possible to scan db from last sequence assoacied to counter(surely there are few rows )i can reads add and remove commands and I can restore very Fastly the correct status of counter without scanning entire db

@jankotek jankotek changed the title Compactation tail limit Expose incremental journal replay Nov 8, 2017
@jankotek
Copy link
Contributor

jankotek commented Nov 8, 2017

I think I understand. You want to be able to replay changes made in last N versions.
It is already possible to keep last N versions in journal (keepVersions parameter).

@jankotek jankotek self-assigned this Nov 8, 2017
@publicocean0
Copy link
Author

hi it is interesting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants