configure sqlite relay
continuous-integration/drone/push Build is running Details

This commit is contained in:
Kieran 2024-01-19 23:16:30 +00:00
parent 6722ad5f8e
commit 9be57a6e84
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 0 deletions

View File

@ -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);