sqlite database is locked error under concurrent writers
SQLite 3.45, a small Go service with several goroutines writing. Under load I get: SQLITE_BUSY: database is locked I set db.SetMaxOpenConns(10). Reads are fine, it's concurrent writes that fail. I thought SQLite handled locking. What's the correct way to configure this? We're moving from a single script to a small service, so this is new ground and I'd rather not learn it in production.
4 replies