在Scale中创建python中的CosmosDB图 [英] Create CosmosDB graph in python in Scale

查看:78
本文介绍了在Scale中创建python中的CosmosDB图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用Gremlin API将本地图形导入python中的Cosmos DB图形数据库。我按照
中的说明按照Cosmos DB中 create-graph-python 的指示 b

几个问题当我试图上传一个大型数据库(~15k顶点)

A couple of question when I am trying to upload a large database(~15k vertices)


  • 我可以上传15-20个节点,但上传将停止更多节点(按停止我的意思是客户端不再响应而且也没有错误。)
  • 我认为在两个查询之间有一个time.sleep(1),但第一点的问题仍然是相同的
  • 如何检查门户网站中Cosmos DB的积压?
  • 如果查询无效,为什么客户端事件没有错误....这在调试期间令人沮丧阶段。

感谢您的帮助!

推荐答案

嗨Shawn,

Hi Shawn,

当您使用Azure门户时,您将通过适用的驱动程序对数据库实例进行REST调用,具体取决于您订阅的API服务。此接口内置了错误处理。对于您的客户端,您可能没有必要的
逻辑来捕获特定的故障。你看到的具体错误是什么?

When you are using the Azure Portal, you are making REST calls to your database instance via the applicable driver depending on the API Service you are subscribed. This interface has error handling built in. With your client, you may not have the necessary logic to capture specific failures. What is the the specific error you are seeing?

如果你看到RU限制错误(429个响应),最好的做法是将数据库或容器的RU阈值提高到允许负载不间断地完成,然后将RU阈值限制降低到初始值。 

If you are seeing RU limit errors (429 responses), the best course of action is to raise the RU threshold for your database or container to allow the load to complete uninterrupted, followed by reducing the RU threshold limits to their initial value. 

请告诉我们具体问题。

谢谢,

迈克

PS如果这回答或解决了您的问题,请标记为已回答。如果没有,请提供其他详细信息或详细说明您实施的解决步骤,并将其标记为已回答。它可以帮助遇到同样问题的其他人。 

P.S. If this answered or resolved your issue, please mark as answered. If not, please provide additional details or detail the resolution steps you implemented and mark that as answered. It helps others who are experiencing the same issue. 


这篇关于在Scale中创建python中的CosmosDB图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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