title: sqlite3 database in shared memory
body: <p>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 <code>/run/shm</code> and use it as a database. Questions are:</p>
  
  <ol>
  <li>Is that safe? In particular: do read/write locks (fcntl) work the same in shm?</li>
  <li>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.</li>
  </ol>