title: Berkeley DB in multithreaded applications
body: <p>What is the best way to use berkeley DB (bdb) handles in a multi-threaded application?</p>
  
  <ol>
  <li><p>Is it better to have each thread open its own handle; or,</p></li>
  <li><p>is it better to open a single handle and have each thread do txn_begin { } txn->commit()?</p></li>
  </ol>
  
  <p>Which one scales better? I am using Transactional Data Store with DB_THREAD flag.</p>
  
  <p>Thanks</p>