import.py: Add VACUUM command

This commit is contained in:
lorenz.stechauner committed 2023-08-30 14:13:13 +02:00
1 parent afd88a2569
commit 27bf1a447d
1 file changed
+1
+1
View File
@@ -128,6 +128,7 @@ def main() -> None:
if not check_foreign_keys(cnx.cursor()):
raise RuntimeError('foreign key constraint failed')
cnx.execute("COMMIT")
cnx.execute("VACUUM")
except Exception as err:
cnx.execute("ROLLBACK")
raise err