- Use PRAGMA incremental_vacuum instead of full VACUUM - Frees ~1000 pages (~4MB) per run without blocking writes - Run every 10 minutes instead of 6 hours since it's lightweight - Set auto_vacuum=INCREMENTAL pragma for new databases - Remove blocking VACUUM on startup |
||
|---|---|---|
| .. | ||
| database_test.go | ||
| database.go | ||
| interface.go | ||
| models.go | ||
| schema.sql | ||
| slowquery.go | ||
| utils.go | ||