I am updating ~600,000 documents in a mongo collection using some PyMongo code that looks like this
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()
After some further investigating I though this might fail for >100,000 documents and that I would have to do something like what is suggested here.
However it works fine on all documents. I am just curious to know what I have misunderstood.
Thanks in advance.