mongo-spark
mongo-spark copied to clipboard
New flag 'upsertDocument' to control the insert behavior of writes
trafficstars
'upsertDocument' flag passed as spark option control the insert behavior (provided if 'forceInsert' is set to false)
If true - MongoSpark behavior the same as earlier i.e. inserts / updates when saving a Dataset. If false - MongoSpark does not insert new documents and updates / sets fields for matching documents.