Add database performance tuning guidelines and user-configurable WAL size limit

This commit is contained in:
Jokob @NetAlertX
2026-03-01 06:43:07 +00:00
parent 584aba2c7b
commit d9608b4760
4 changed files with 58 additions and 3 deletions

View File

@@ -341,6 +341,15 @@ def importConfigs(pm, db, all_plugins):
"[]",
"General",
)
conf.PRAGMA_JOURNAL_SIZE_LIMIT = ccd(
"PRAGMA_JOURNAL_SIZE_LIMIT",
50,
c_d,
"WAL size limit (MB)",
'{"dataType":"integer", "elements": [{"elementType" : "input", "elementOptions" : [{"type": "number"}] ,"transformers": []}]}',
"[]",
"General",
)
conf.REFRESH_FQDN = ccd(
"REFRESH_FQDN",
False,