VACUUM;, то ошибка:
cannot VACUUM from within a transaction:
self.db.execute("DELETE FROM %s" % table_name)
self.db.execute("REINDEX %s" % table_name)
self.db.execute("VACUUM")
self.db.commit()
self.db.execute("DELETE FROM %s" % table_name)
self.db.execute("REINDEX %s" % table_name)
self.db.commit()
self.db.execute("VACUUM")
self.db.commit()