1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
習慣沉默2017-05-02 09:21:27
Python has bulk_write, and most other languages also have it
reqs=[pymongo.DeleteMany (the parameters are actually the same as the delete function), pymongo.UpdateOne (the parameters are actually the same as update_one), pymongo.Insert (same as above)]
database.conns.bulk_write(reqs)