How can I do a bulk upsert in pymongo? I want to Update a bunch of entries and doing them one at a time is very slow.
The answer to an almost identical question is h
You can update all documents that match your query spec using multi=True.
There is a bug here about doing a batch of commands the way you want.