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

save only changed, deleted, or added tasks. #35

Open
monomycelium opened this issue Mar 28, 2023 · 1 comment
Open

save only changed, deleted, or added tasks. #35

monomycelium opened this issue Mar 28, 2023 · 1 comment

Comments

@monomycelium
Copy link

Hey, I was also writing a TUI to-do app in Rust (but using tui-rs), but I was considering a more efficient way to save the tasks by saving only the lines that have been changed and not the unchanged ones. I tried making many implementations, like using enums or checking if the file contains that task already. However, I kept getting stuck. Do you have any idea how we could implement this?

@monomycelium
Copy link
Author

monomycelium commented Mar 28, 2023

Should we have an ID field for each task? Or maybe we could use rusqlite? Or csv? As long as it would reduce IO operations without compromising too much performance.

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