Re:Many small queries are efficient in SQLite
by samatman on Tuesday February 16, 2021 @05:15PM
(#26159442)
There is no such thing, to my knowledge.
What can be done is registering a busy callback:
https://www.sqlite.org/c3ref/busy_handler.html
I don't understand enough about your specific problem to know if this will actually help you, just sharing a tidbit I encountered working on a comparable issue.
I was hoping to find some kind of global switch that would make sqlite always wait for locks rather than throwing an error. But I've scoured the web for such a solution without success :-(