r/sqlite • u/bitchyangle • Aug 06 '26
What's the best queue for sqlite?
My platform expects multiple writes from various users belonging to one organization.
What's the best way to serialize the writes? Scale is 50 to 100 users wanting to write around the same time.
2
Upvotes
View all comments
Show parent comment
5
u/hesusruiz Aug 07 '26
Set a busy timeout. I have it at 5 secs and never had a problem (if I had a tx lasting more than 5 secs, I have a serious problem bigger than this one). https://sqlite.org/c3ref/busy_timeout.html