refactor: update journal mode comment for DatabaseService and optimize CPU state check in EditorLayout

This commit is contained in:
SaelixCode
2026-02-27 11:10:35 -05:00
parent b95838ae9c
commit 91cafb49f9
2 changed files with 8 additions and 3 deletions
+1 -2
View File
@@ -47,8 +47,7 @@ export class DatabaseService {
const dbPath = path.join(dataDir, 'sencho.db');
this.db = new Database(dbPath);
// Use WAL mode for better concurrency performance
this.db.pragma('journal_mode = WAL');
// Default journal mode is safer for arbitrary Docker volume mounts than WAL
this.initSchema();
}