Try using https://pypi.python.org/pypi/sqlitedict
Lightweight wrapper around the python sqlite3 database with voice recorder support and multi-threaded access. But keep in mind that "concurrent queries are still serialized internally, so this" multithreaded support "does not give you any performance advantages. This is a limitation for sqlite restrictions in Python."
PostgreSQL, MySQL, etc. give you better performance for multiple connections at a time
source
share