Reputation: 141
It is possible [in any way, even poorly hacked solution] to share in-memory database between many processes? My application has one process that opens the in-memory database and the other are running only SELECT
queries on the database.
NOTE: I need solution only for python 2.7, and btw if it matters the module I use for making new processes is multiprocessing
.
Upvotes: 3
Views: 1117
Reputation: 5486
On Linux you can just use /dev/shm
as the file location of your sqlite.
This is a memory mounted drive suitable exactly for that.
Upvotes: 4