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

Make write-ahead-log default and configurable for sqlite #1985

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Jun 20, 2024

this commit makes headscale correctly enable write-ahead-log for sqlite and adds an option to turn it on and off.

WAL is enabled by default and should make sqlite perform a lot better, even further eliminating the need to use postgres.

It also adds a couple of other useful defaults.

Note, this PR removes WAL from the sqlite connection string, as that did not have any effect with the sqlite driver we use.

Fixes #1983

this commit makes headscale correctly enable write-ahead-log for
sqlite and adds an option to turn it on and off.

WAL is enabled by default and should make sqlite perform a lot better,
even further eliminating the need to use postgres.

It also adds a couple of other useful defaults.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby kradalby merged commit 4a34cfc into juanfont:main Jun 23, 2024
103 checks passed
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

Successfully merging this pull request may close these issues.

[Feature] Use SQLite in WAL mode by default
3 participants