Skip to content

Commit

Permalink
Mail: SQL: Set synchronous to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
jermy-c committed Dec 2, 2024
1 parent 1c914a0 commit a3dbd33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/logic/Mail/SQL/SQLDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function getDatabase(): Promise<Database> {
mailDatabase = await getDatabase("mail.db");
await mailDatabase.migrate(mailDatabaseSchema);
await mailDatabase.pragma('foreign_keys = true');
await mailDatabase.pragma('synchronous = NORMAL');
await mailDatabase.pragma('journal_mode = WAL');
return mailDatabase;
}
Expand Down

0 comments on commit a3dbd33

Please sign in to comment.