Always consolidate the WAL file and VACUUM to start

main
Simon Quigley 1 week ago
parent 565be5e97d
commit e39e2d4c49

@ -84,6 +84,8 @@ bool init_database(const QString& database_path) {
ci_query_exec(&pragma_query, "PRAGMA journal_mode = WAL;");
ci_query_exec(&pragma_query, "PRAGMA synchronous = NORMAL;");
ci_query_exec(&pragma_query, "PRAGMA foreign_keys = ON;");
ci_query_exec(&pragma_query, "PRAGMA wal_checkpoint(TRUNCATE);");
ci_query_exec(&pragma_query, "VACUUM;");
}
// Run the schema creation (or migration) statements

Loading…
Cancel
Save