Tune SQLite caches and maintain planner statistics

This commit is contained in:
2026-10-06 14:05:02 -04:00
parent 283a553cc2
commit 18283c63a7
6 changed files with 48 additions and 0 deletions
+2
View File
@@ -1,5 +1,7 @@
import Database from 'better-sqlite3';
import { workerData } from 'node:worker_threads';
import { tuneConnection } from '../db/connection.js';
const handle = new Database(workerData.dbPath, { readonly: true, fileMustExist: true });
tuneConnection(handle, true);
export function db() { return handle; }