Run vacuum on sqlite periodically

This commit is contained in:
Omar Ajoue
2020-12-31 10:42:16 +01:00
parent 638310fa94
commit d528e442ba
2 changed files with 21 additions and 0 deletions

View File

@@ -124,6 +124,14 @@ const config = convict({
env: 'DB_MYSQLDB_USER',
},
},
sqlite: {
vacuumInterval: {
doc: 'SQLite Vacuum operation interval',
format: Number,
default: 86400, // Given in seconds; -1 disables. 0 executes only at startup.
env: 'DB_SQLITE_VACUUM_INTERVAL',
},
},
},
credentials: {