# Concurrency ``` PRAGMA journal_mode=WAL; PRAGMA synchronous=NORMAL; ``` Many people think SQLite locks the whole database on every write. They are wrong. You just need to turn on Write-Ahead Logging (WAL). Execute this pragma once when you open the database.