Skip to content
Snippets Groups Projects
Commit 8ec1091d authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Vacuum SQLite database at startup.

parent 6fea0294
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,11 @@
This file logs the changes that are actually interesting to users (new features,
changed functionality, fixed bugs).
## Version 2.0.5 (in development)
- Vacuum SQLite database at startup.
## Version 2.0.4 (released 201-05-09)
- Fixed bug in writing ~/.flamenco-worker.cfg
......
......@@ -38,6 +38,9 @@ class TaskUpdateQueue:
# We don't need to create a primary key; we use the implicit 'rowid' column.
self._db.execute('CREATE TABLE IF NOT EXISTS fworker_queue(url TEXT, payload BLOB)')
# Start with a more-or-less compact database.
self._db.execute('VACUUM')
def _disconnect_db(self):
self._log.info('Disconnecting from database %s', self.db_fname)
self._db.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment