This commit is contained in:
parent
6722ad5f8e
commit
9be57a6e84
@ -30,6 +30,7 @@ export class SqliteRelay extends EventEmitter<RelayHandlerEvents> implements Rel
|
|||||||
try {
|
try {
|
||||||
this.#db = new this.#sqlite.oo1.OpfsDb(path, "cw");
|
this.#db = new this.#sqlite.oo1.OpfsDb(path, "cw");
|
||||||
this.#log(`Opened ${this.#db.filename}`);
|
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) {
|
} catch (e) {
|
||||||
// wipe db
|
// wipe db
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user