Azure Cosmos DB批量导入 [英] Azure cosmos db bulk import

查看:79
本文介绍了Azure Cosmos DB批量导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure cosmos db(Mongo db API)是否可以批量导入?我想将可在json文件中使用的大型数据集集导入到Mongo DB的Azure cosmos.我尝试使用mongoimport和Java mongo API进行导入,但是这花费了很长时间并且最终超时.

关于如何将其直接从我的文件直接导入cosmos db的任何建议?

PS:

Cosmos db迁移工具也不适用于cosmos db Mongo Api:

作为解决方法,请对Azure数据工厂有所了解支持将数据从文件传输到 Azure Blob存储内部文件系统甚至.

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.

解决方案

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.

这篇关于Azure Cosmos DB批量导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆