I'm trying to share an in-memory database between processes. I'm using Python's sqlite3. The idea is to create a file in /run/shm
and use it as a database. Questions are:
- Is that safe? In particular: do read/write locks (fcntl) work the same in shm?
- Is that a good idea in the first place? I'd like to keep things simple and not have to create a separate database process.