headscale/hscontrol/db
Kristoffer Dalby 4a34cfc4a6
Make write-ahead-log default and configurable for sqlite (#1985)
* correctly enable WAL log for sqlite

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>

* update changelog

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-06-23 22:06:59 +02:00
..
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go Make write-ahead-log default and configurable for sqlite (#1985) 2024-06-23 22:06:59 +02:00
ip.go Migrate IP fields in database to dedicated columns (#1869) 2024-04-17 07:03:06 +02:00
ip_test.go Restore foreign keys and add constraints (#1562) 2024-05-15 20:40:14 -04:00
node.go Remove allocations of lists before use (#1989) 2024-06-23 22:06:50 +02:00
node_test.go Fix typos (#1860) 2024-05-19 23:49:27 +02:00
preauth_keys.go Fix typos (#1860) 2024-05-19 23:49:27 +02:00
preauth_keys_test.go Restore foreign keys and add constraints (#1562) 2024-05-15 20:40:14 -04:00
routes.go Remove allocations of lists before use (#1989) 2024-06-23 22:06:50 +02:00
routes_test.go Restore foreign keys and add constraints (#1562) 2024-05-15 20:40:14 -04:00
suite_test.go new IP allocator and add postgres to integration tests. (#1756) 2024-02-18 19:31:29 +01:00
users.go more log.Error -> fmt.Errorf cleanup 2024-04-15 12:31:53 +02:00
users_test.go Restore foreign keys and add constraints (#1562) 2024-05-15 20:40:14 -04:00