piskvorky / sqlitedict

Persistent dict, backed by sqlite3 and pickle, multithread-safe.
Apache License 2.0
1.17k stars 131 forks source link

Feature Request: Asyncio support #119

Open bitnom opened 4 years ago

bitnom commented 4 years ago

It would be nice to have sqlitedict methods as co-routines. Thoughts?

longnetwork commented 2 years ago

sqlitedict runs in threads with a single connection or in processes with multiple connections. This works without using locks in the python code. all necessary synchronizations are at the sql driver level. Great job! I gave up on leveldb because of the inability to work with multiprocesses. sqlitedict - no problem. I use it to cache large constants on disk (smartcontract codes)