Is there any problem with multiple Python threads (on same machine or from different machines connected on a network) reading from the same sqlite database, using Python's built in sqlite module? None of the threads write to the database, only read it. This sqlite access from multiple threads for reading seems relevant but inconclusive. Is there a problem with this?
Add a comment
|
1 Answer
Sqlite supports concurrent reading. See the FAQ. I imagine Python's sqlite module does the same. Just don't share cursors and connections between threads; create one for each.