1
votes

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
Hi,does my answer helps you?Jay Gong
Thanks for your responsepks

1 Answers

3
votes

Bulk executor library is not available for cosmos db Mongo Api:

enter image description here

Cosmos db migration tool is not available for cosmos db Mongo Api as well:

enter image description here

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.