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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -