mirror of
1
Fork 0
gotosocial/internal/config
tobi 782169da76
[chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369)
* [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite

* reduce cache size default to 8MiB, reduce connections to 2 * cpu

* introduce max open conns multiplier, tune sqlite and pg separately

* go fmt
2023-01-26 15:12:48 +01:00
..
gen [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
testdata [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
config.go [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369) 2023-01-26 15:12:48 +01:00
config_test.go [feature] support configuring database caches (#1246) 2022-12-11 13:03:15 +00:00
defaults.go [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369) 2023-01-26 15:12:48 +01:00
flags.go [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369) 2023-01-26 15:12:48 +01:00
global.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
helpers.gen.go [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369) 2023-01-26 15:12:48 +01:00
state.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
validate.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
validate_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00