From 199f6beec9c9bf6eb08446a4c956ff709aef8fa7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 24 Jul 2015 00:56:05 +0300 Subject: [PATCH] Execute VACUUM after reloading --- reload_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reload_db.py b/reload_db.py index 64e84f4..8d8b0df 100755 --- a/reload_db.py +++ b/reload_db.py @@ -55,6 +55,6 @@ for line in dump_file: assert row.last_shown == timestamp txn.commit() -sqlhub.processConnection = connection - dump_file.close() + +connection.query("VACUUM %s" % xsetbg_db.sqlmeta.table) -- 2.39.5