问题
Is bulk import available for Azure cosmos db(Mongo db API)? I want to import large dataset set which is available in a json file to Azure cosmos for Mongo DB. I tried importing using mongoimport and Java mongo APIs but it took a long time and timed out in the end.
Any suggestions on how to import it directly from my file to cosmos db?
PS: https://docs.microsoft.com/en-us/azure/cosmos-db/bulk-executor-java --- says bulk executor is not available for cosmos's mongo db yet.
回答1:
Bulk executor library is not available for cosmos db Mongo Api:
Cosmos db migration tool is not available for cosmos db Mongo Api as well:
As workaround,please get an idea of Azure Data Factory Copy Activity which supports transfer data from a file into cosmos db Mongo api sink. The source file could be from Azure Blob Storage or File System on-premise even.
来源:https://stackoverflow.com/questions/60311641/azure-cosmos-db-bulk-import