J
J
jslby2020-07-12 23:38:54
Python
jslby, 2020-07-12 23:38:54

Which base is more suitable for multithreading?

I am writing a python application with a large number of threads, and there was a problem with choosing a base. Initially, there was an implementation on Mysql, but due to the large number of locks, I had to abandon it, everything worked extremely unstable, and there is no deep knowledge to implement locks normally.
I switched to Redis, and now I ran into the fact that it is impossible to select from a list of json objects by one of the fields.
Maybe there are analogues of radish, where there is no need to work with locks, at the same time there is the possibility of flexible sampling?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Suroegin, 2020-07-16
@ivan_suroegin

Is it possible to refuse multithreading? If yes, then use asyncio, the standard library included with Python, instead. Postgres has aiopg, MySQL has aiomysql. Try it. I don't think you'll regret it)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question