logoalt Hacker News

wmanleytoday at 7:38 PM0 repliesview on HN

Use a connection per-thread instead. By sharing a connection across threads you’ll be limiting concurrency - and transactions won’t work as you’d expect. SQLite connections are not heavy.

Also: use WAL mode and enable mmap.