Importing to CosmosDB MongoDB API using mongorestore fails with retryable writes error

前端 未结 2 748
一向
一向 2021-01-21 16:01

I\'m trying to export and import data from an old MongoDB database server to Azure CosmosDB with MongoDB API using mongodump and mongorestore. But i\'m having issues with the co

2条回答
  •  花落未央
    2021-01-21 16:58

    I found that the various mongotools (mongoimport, mongorestore, etc.) seem to ignore the retrywrites=false or retryWrites=false in the URI, but tacking on the option --writeConcern="{w:0}" allows the command to run successfully on instances that don't support retryable writes

提交回复
热议问题