mongodb - Is there a pymongo (or another Python library) bulk-save? -
i'm trying write function bulk-save mongodb using pymongo, there way of doing it? i've tried using insert , works new records fails on duplicates. need same functionality using save collection of documents (it replaces added document same _id instead of failing).
thanks in advance!
you can use bulk insert option w=0 (ex safe=false), should check see if documents inserted if important you
Comments
Post a Comment