Answer the question
In order to leave comments, you need to log in
Sqlite VACUUM is a bug?
Kind
Prompt, in a DB records often appear and are deleted, read here that it is necessary to write still the VACUUM command. How to write? if just
vacuum;, then the error is:
cannot VACUUM from within a transaction:
Answer the question
In order to leave comments, you need to log in
Faced a similar problem. It only occurred when I ran VACUUM along with other commands, like so:
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()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question