之前有个项目用了 sqlite,但总是报 sqlite_busy: database is locked,对 sqlite 都有阴影了。看了 redka 对 sqlite 的用法,才明白需要开两条连接,一个 read only,设置尽量大的 open connections,一个 read-write,只允许1个连接数。开启 wal,synchronous 设为 normal。https://t.co/NoPenQbyq0

Reply to this note

Please Login to reply.

Discussion

No replies yet.