-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support opening Replica in read-only mode #479
Comments
Am I right in the understanding that following code opens the database? taskchampion/taskchampion/src/storage/sqlite.rs Lines 80 to 155 in f4e1679
How is the connection process between taskwarrior and taskchampion for opening the database? Because for my understanding one could open all the |
Yes, and in particular To fix, I think we would add a boolean to StorageConfig::OnDisk, then set that value via the C++ bridge functions. A possible tricky bit will be in Taskwarrior: sometimes it writes during report commands, when it applies garbage collection. I think there's already a flag for that in the Command structure, so probably that could be handled correctly, but I haven't looked. |
...but of course, changing |
Lots of access to the Replica is only reading, not writing. SQLite can be quite a bit faster in that circumstance. Also, SQLite writes to the database itself when opened in read-write mode (GothenburgBitFactory/taskwarrior#3418).
Let's allow opening a Replica in read-only mode.
The text was updated successfully, but these errors were encountered: