]> git.phdru.name Git - xsetbg.git/commitdiff
Execute VACUUM after reloading
authorOleg Broytman <phd@phdru.name>
Thu, 23 Jul 2015 21:56:05 +0000 (00:56 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 23 Jul 2015 21:56:05 +0000 (00:56 +0300)
reload_db.py

index 64e84f4cdafbc8b21ec6e8c0b370df9c7d812f5a..8d8b0df815142eab3245485dae832a77574938ea 100755 (executable)
@@ -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)