mongo-spark
mongo-spark copied to clipboard
SPARK-364 overwrite to keep collection options
added way to configure collection truncate approach in overwrite writing mode.
new write option: truncate_mode might have one of the following options:
DROPsame as before. Just drop collection and create new one with default configurationDELETE_ALLexpensive delete all query. Keeps original collection, but slowly deletes all documents from itRECREATEsaves previous options and indexes, drops the collection, creates new collection with the same options and indexes