optimize database when update database version.

This commit is contained in:
2021-05-08 18:57:38 +08:00
parent 5249890f25
commit 50e2029058

View File

@@ -118,6 +118,7 @@ class database:
'INSERT INTO hashList VALUES (?, ?, ?);', tuple(l))
self._db.execute('DROP TABLE hashList_old;')
self._db.commit()
self._db.execute('VACUUM;')
self.__updateExistsTable()
self.__write_version()
return True