taskwarrior icon indicating copy to clipboard operation
taskwarrior copied to clipboard

mtime of taskchampion.sqlite3 got changed when calling `task list`

Open chenyuntc opened this issue 1 year ago • 2 comments

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)?

chenyuntc avatar Apr 29 '24 17:04 chenyuntc

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.

LeGuipo avatar Apr 29 '24 19:04 LeGuipo

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.

djmitche avatar Apr 30 '24 20:04 djmitche