database: various optimizations for SQLite and PostgreSQL

This commit is contained in:
Luca Matei Pintilie
2026-07-21 01:16:49 +02:00
parent b51b93d6d4
commit ad14748a30
15 changed files with 143 additions and 11 deletions
+10
View File
@@ -287,6 +287,16 @@ can be changed by this setting
# keep messages forever, the default
archive_expires_after=0
sqlite_journal_mode
~~~~~~~~~~~~~~~~~~~
Set the `journal_mode https://sqlite.org/pragma.html#pragma_journal_mode`_ to
be used when connecting to an SQLite database. This option can be one of
`DELETE`, `TRUNCATE`, `PERSIST`, `MEMORY`, `WAL`, `OFF`, or `none` to not set
the journal_mode at all.
By default this option is set to `WAL` to use `Write-Ahead Logging
https://sqlite.org/wal.html`_.
TLS configuration
-----------------