configure sqlite relay
This commit is contained in:
parent
6722ad5f8e
commit
9be57a6e84
@ -30,6 +30,7 @@ export class SqliteRelay extends EventEmitter<RelayHandlerEvents> implements Rel
|
||||
try {
|
||||
this.#db = new this.#sqlite.oo1.OpfsDb(path, "cw");
|
||||
this.#log(`Opened ${this.#db.filename}`);
|
||||
this.#db.exec(`PRAGMA cache_size=${32 * 1024}; PRAGMA page_size=8192; PRAGMA journal_mode=MEMORY; PRAGMA temp_store=MEMORY;`);
|
||||
} catch (e) {
|
||||
// wipe db
|
||||
console.error(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user