Skip to content

Commit

Permalink
[core] Use WAL for sqlite3
Browse files Browse the repository at this point in the history
fix #628
  • Loading branch information
devlikepro committed Nov 6, 2024
1 parent 84ac1d8 commit 1444155
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/storage/LocalStoreCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class LocalStoreCore extends LocalStore {
const engineDir = this.getEngineDirectory();
const database = path.join(engineDir, 'waha.sqlite3');
this.db = new Database(database);
this.db.pragma('journal_mode = WAL;');
}
return this.db;
}
Expand Down

0 comments on commit 1444155

Please sign in to comment.