--- name: "sqlite-wal-optimization" description: "High concurrent SQLite access causing lock contention and missing indexes Keywords: sqlite, wal, indexes, performance" --- # sqlite-wal-optimization ## Overview High concurrent SQLite access causing lock contention and missing indexes ## Solution Pattern & Best Practices Apply PRAGMA journal_mode=WAL and create composite indexes on (task_mode, created_at) ## Verification & Testing Strategy Run PRAGMA integrity_check and benchmark with multi-client connections