Changeset 7b07035 in Klonkt
- Timestamp:
- 07/01/2026 06:18:14 PM (2 months ago)
- Branches:
- main
- Children:
- dc41bef
- Parents:
- f1956d7
- File:
-
- 1 edited
-
src/config/database.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
rf1956d7 r7b07035 17 17 db.pragma('journal_mode = WAL'); 18 18 db.pragma('foreign_keys = ON'); 19 // With WAL + several concurrent writers (request handlers, the delivery worker, the 20 // background thread-crawler) a short write-lock should retry rather than throw SQLITE_BUSY. 21 db.pragma('busy_timeout = 5000'); // wait up to 5s for a lock instead of failing immediately 22 db.pragma('synchronous = NORMAL'); // safe with WAL (no torn writes); fewer fsyncs = faster writes 19 23 20 24 export function initializeDatabase() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)