title: How to quickly fetch all documents MongoDB pymongo
body: <p>Currently I fetch documents by iterating through cursor in pymongo, for example:</p>
  
  <pre><code>for d in db.docs.find():
      mylist.append(d)
  </code></pre>
  
  <p>For reference, performing a fetchall on the same set of data (7m records) takes around 20 seconds while the method above takes a few minutes.</p>
  
  <p>Is there a faster way read bulk data in mongo? Sorry I'm new to mongo, please let me know if more information is needed.</p>