Azure cosmos db bulk import

China☆狼群 提交于 2021-01-28 20:20:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!