diff --git a/anki/media.py b/anki/media.py index 88b5333c8..c1f783b28 100644 --- a/anki/media.py +++ b/anki/media.py @@ -446,7 +446,8 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0); self.db.execute("update meta set lastUsn=0,dirMod=0") self.db.commit() self.db.setAutocommit(True) - self.db.execute("vacuum analyze") + self.db.execute("vacuum") + self.db.execute("analyze") self.db.setAutocommit(False) # Media syncing: zips