Commit 91d2f96
committed
chore(db): enable auto-vacuum and add periodic maintenance
One-time migration: detect auto_vacuum = 0 (NONE) and switch to
INCREMENTAL. Run a full VACUUM to apply the mode change. Subsequent
database opens skip this since the mode persists.
This prevents the database file from growing indefinitely as deleted
rows leave behind free pages that are never reclaimed.1 parent 5bdfcaa commit 91d2f96
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| |||
0 commit comments