mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-14 02:35:06 +00:00
Changed the journal mode of the SQLite DB to WAL.
https://github.com/JoshuaWise/better-sqlite3/issues/262#issuecomment-549872386 https://www.sqlite.org/wal.html Just do it. It should near instanly make Bibliogram faster.
This commit is contained in:
committed by
Cadence Ember
parent
eabcfc01cf
commit
0d251779f2
@@ -5,4 +5,5 @@ const fs = require("fs")
|
||||
const dir = pj(__dirname, "../../db")
|
||||
fs.mkdirSync(pj(dir, "backups"), {recursive: true})
|
||||
const db = new sqlite(pj(dir, "bibliogram.db"))
|
||||
db.pragma("journal_mode = WAL")
|
||||
module.exports = db
|
||||
|
||||
Reference in New Issue
Block a user