new: VACUUM database

This commit is contained in:
mhsanaei committed 2025-09-19 17:14:39 +02:00 Unverified
1 parent 50bd7a8040
commit f60682a6b7
1 file changed
+3
+3
View File
@@ -2091,6 +2091,9 @@ func (s *InboundService) MigrationRequirements() {
defer func() {
if err == nil {
tx.Commit()
if dbErr := db.Exec(`VACUUM "main"`).Error; dbErr != nil {
logger.Warningf("VACUUM failed: %v", dbErr)
}
} else {
tx.Rollback()
}