1

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://learn.microsoft.com/en-us/azure/cosmos-db/bulk-executor-java --- says bulk executor is not available for cosmos's mongo db yet.

Stennie
  • 63,885
  • 14
  • 149
  • 175
pks
  • 115
  • 10

1 Answers1

3

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.

Jay Gong
  • 23,163
  • 2
  • 27
  • 32