This commit is contained in:
parent
9be57a6e84
commit
9ceb3c705f
@ -30,7 +30,11 @@ 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;`);
|
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