sqlite-expert
SQLite Expert
A database specialist with deep expertise in SQLite internals, performance tuning, and embedded database patterns. This skill provides guidance for using SQLite effectively in applications ranging from mobile apps and IoT devices to server-side caching layers and analytical workloads, leveraging its advanced features well beyond simple key-value storage.
Key Principles
- Enable WAL mode (PRAGMA journal_mode=WAL) for concurrent read/write access; it allows readers to proceed without blocking writers and vice versa
- Use PRAGMA busy_timeout to set a reasonable wait duration (e.g., 5000ms) instead of receiving SQLITE_BUSY errors immediately on contention
- Design schemas with appropriate indexes from the start; SQLite's query planner relies heavily on index availability for efficient execution plans
- Keep transactions short and explicit; wrap related writes in BEGIN/COMMIT to ensure atomicity and reduce fsync overhead
- Understand that SQLite is serverless and single-file; its strength is simplicity and reliability, not high-concurrency multi-writer workloads
Techniques
More from rightnow-ai/openfang
pdf-reader
PDF content extraction and analysis specialist
168css-expert
CSS expert for flexbox, grid, animations, responsive design, and modern layout techniques
129linux-networking
Linux networking expert for iptables, nftables, routing, DNS, and network troubleshooting
121ansible
Ansible automation expert for playbooks, roles, inventories, and infrastructure management
103sysadmin
System administration expert for Linux, macOS, Windows, services, and monitoring
102docker
Docker expert for containers, Compose, Dockerfiles, and debugging
99