Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I use Python 2.7 and a SQLite3 database. I want to run update queries on the database that can take some time. On the other hand I don't want that the user has to wait. Therefore I want to start a new thread to do the database updating.

Python throws an error. Is there an effective way to tell the database to do the update in it's own thread without having to wait for the thread to finish?

line 39, in execute ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 3648 and this is thread id 6444

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.