title: Is there an upper limit on the number of documents you can update in PyMongo?
body: <p>I am updating ~600,000 documents in a mongo collection using some PyMongo code that looks like this</p>
  
  <pre><code>bulk = coll.initialize_ordered_bulk_op()
  
  for index, row in df.iterrows():
  
      bulk.find({ '_id': ObjectId(row['id']) }).update({ '$set': { "X": 
      row['X'].split(',') } })
  
  bulk.execute()
  </code></pre>
  
  <p>After some <a href="https://docs.mongodb.com/manual/reference/limits/#Write-Command-Batch-Limit-Size" rel="nofollow noreferrer">further investigating</a> I though this might fail for >100,000 documents and that I would have to do something like what is suggested <a href="https://stackoverflow.com/questions/35480660/bulk-update-in-pymongo-using-multiple-objectid">here</a>.</p>
  
  <p>However it works fine on all documents. I am just curious to know what I have misunderstood.</p>
  
  <p>Thanks in advance.</p>