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

mtime of taskchampion.sqlite3 got changed when calling task list #3418

Open
chenyuntc opened this issue Apr 29, 2024 · 2 comments
Open

mtime of taskchampion.sqlite3 got changed when calling task list #3418

chenyuntc opened this issue Apr 29, 2024 · 2 comments

Comments

@chenyuntc
Copy link

When I run task list the taskchampion.sqlite3's mtime changed.

This is inconvenience as I use the mtime to sync between workstations.

So is there a way to turn off the changes on the sqlite file when operations has no side-effect (i.e. list, filter)?

@LeGuipo
Copy link

LeGuipo commented Apr 29, 2024

I confirm. Every time taskwarrior fetches some data, the file seems updated. I also suspect this is the cause of the noticeable delays for taskwarrior to display results.

@djmitche
Copy link
Collaborator

I don't think TW is acutally modifying the data, but it is opening the DB in r/w mode which, from some quick strace analysis, does perform a write of the first block.

So, we should find a way to open the DB in a read-only mode.

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

No branches or pull requests

3 participants