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

Should store intervals in DB, rather than ticks #7

Open
msteffen opened this issue Mar 28, 2019 · 0 comments
Open

Should store intervals in DB, rather than ticks #7

msteffen opened this issue Mar 28, 2019 · 0 comments

Comments

@msteffen
Copy link
Owner

Currently, after each write, the watch daemon appends a row to its database. Instead, I think it would use less space and possibly speed up reads if it read the most recent interval/tick and appended to it (or started a new interval).

It would probably need to store initial writes as 0-length intervals, and remove the most recent interval inside of each write if it's 0-length and the current write doesn't extend it

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