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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -