2

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?

1 Answer 1

6

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.