Keep startup database rebuilds out of memory

This commit is contained in:
2026-10-06 15:18:13 -04:00
parent 8f8897b86b
commit 6999a33aef
12 changed files with 184 additions and 15 deletions
+3
View File
@@ -93,6 +93,9 @@ available longer. Previously saved retention choices are preserved on upgrade.
The database upgrade normalizes retention clocks to UTC and enables incremental
vacuum. An existing database without a vacuum page map is rebuilt once at startup;
allow time for this rebuild and free disk space up to twice the database size.
The rebuild uses disk-backed temporary storage and a 16 MiB page cache instead
of holding a temporary copy of the database in RAM. Container scratch files use
`/data/.sqlite-tmp`; `[database]` startup logs identify the current migration.
Normal cleanup releases unused file blobs in bounded batches and incrementally
returns free pages to disk after larger prunes.