slapos/collect: Call VACUUM to clean up the sql database size.
Showing
... | @@ -287,6 +287,7 @@ class Database: | ... | @@ -287,6 +287,7 @@ class Database: |
if table not in self.preserve_table_list: | if table not in self.preserve_table_list: | ||
self._execute(delete_sql % (table, where_clause)) | self._execute(delete_sql % (table, where_clause)) | ||
self._execute("VACUUM;") | |||
self.commit() | self.commit() | ||
|
|||
self.close() | self.close() | ||
... | ... |