I
I
Ivan2020-11-12 11:55:06
Python
Ivan, 2020-11-12 11:55:06

How to fix Database is locked error in sqlite?

After a long interaction with the database, the Database is looked error occurs, I use multithreading and set with lock for any work with the database.
How to fix or work around? The program processes 3-5 requests per second.

I heard that sqlite does not support asynchrony / multithreading / multiprocessing, should I change it then?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-11-12
@mlneko

Don't use sqlite, time to master postgresql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question