title: Is MongoDB thread-safe?
body: <p>I'm running MongoDB on Windows.  I have 1 or more threads that drop and recreate a collection.</p>
  
  <p>Using <code>mongo.exe</code> with the <code>show collections()</code> command, I'm seeing multiple collections with the same name (well over 1,000 collections with the same name!).</p>
  
  <p>When I run validate:</p>
  
  <pre><code>&gt; db.MY_COLLECTION.validate()
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>{ "errmsg" : "ns not found", "ok" : 0, "valid" : false }
  </code></pre>
  
  <p>The <code>size()</code> command returns 0, and <code>find()</code> returns nothing.</p>
  
  <p>My question is: Is MongoDB thread safe?  A follow on question would be something like <em>'Am I doing this correctly (dropping and recreating) or is there a better way to refresh the whole content of a collection?'</em></p>