mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
significantly faster sync with transactions
This commit is contained in:
@@ -18,6 +18,9 @@ async function createConnection() {
|
||||
const dbConnection = new Promise(async (resolve, reject) => {
|
||||
// no need to create new connection now since DB stays the same all the time
|
||||
const db = await createConnection();
|
||||
|
||||
db.run('PRAGMA journal_mode = WAL;');
|
||||
|
||||
sql.setDbConnection(db);
|
||||
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user