r/programming • • Sep 10 '24

SQLite is not a toy database

https://antonz.org/sqlite-is-not-a-toy-database/
811 Upvotes

309 comments sorted by

View all comments

Show parent comments

8

u/crozone Sep 11 '24

No, but it locks the database for you so that they're serialised safely.

2

u/MaleficentFig7578 Sep 11 '24

Remember to set pragma busy_timeout = 5000; or so. Otherwise the transaction will fail immediately if a lock is already held.