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

Use WAL mode for sqlite log? #4773

Open
poVoq opened this issue Aug 6, 2023 · 1 comment
Open

Use WAL mode for sqlite log? #4773

poVoq opened this issue Aug 6, 2023 · 1 comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.

Comments

@poVoq
Copy link

poVoq commented Aug 6, 2023

Feature Description

WAL mode for Sqlite is significantly faster and more resilient than the default methode, especially on modern filesystems like Btrfs, see: https://wiki.tnonline.net/w/Blog/SQLite_Performance_on_Btrfs

Would be nice if this could be used by default.

Thanks!

@poVoq poVoq added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Aug 6, 2023
@brunnre8
Copy link
Member

brunnre8 commented Aug 6, 2023

more resilient it is not, speed? Depends on what you do.
The trade offs are enumerated in the sqlite docs quite well.

WAL might be a good for for us though, considering we are mostly append only and write heavy.

The EBUSY stuff could be interesting and we'd need to catch that in the db and retry accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

No branches or pull requests

2 participants