P
P
Python Newbie2021-10-27 20:10:34
Python
Python Newbie, 2021-10-27 20:10:34

So multithreading is enabled?

So enable multithreading?

db = sqlite3.connect('users.db', DSQLITE_THREADSAFE=1)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
antares4045, 2021-10-27
@Levman5

It won't work for you, try it. there is no such option.
But there is check_same_thread (which, by the way, will allow you to go along "path A" from my answer to your previous question about sqlite)

S
Sergey Gornostaev, 2021-10-27
@sergey-gornostaev

No. To support multithreading, you need to take the SQLite sources, the C compiler and build the library with this option. But this will only give that SQLite will not fall in a competitive environment, and it will still work very slowly in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question