From: Oleg Broytman Date: Thu, 23 Jul 2015 21:56:05 +0000 (+0300) Subject: Execute VACUUM after reloading X-Git-Tag: v5.0.0~9 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=199f6beec9c9bf6eb08446a4c956ff709aef8fa7 Execute VACUUM after reloading --- 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)