Azure 表存储性能 - REST 与 StorageClient
我正在使用 Azure 表存储,并试图找出提高性能的最佳方法。我执行的查询非常简单 - 要么使用分区键和行键进行精确选择,要么使用列表的 where 子句(例如,WHERE x==1 或 x==2 或 x==3 等)。一旦我取回数据,我就不会在数据上下文中跟踪它(不需要更改跟踪等)。保存数据也是如此,所以我只将其添加到上下文中以启用保存。
目前,我正在使用.NET 库(存储客户端)。由于我不使用 TableServiceContext 的更改跟踪和其他功能,因此我正在考虑直接使用 HTTP API。有人尝试过这两种选择吗?如果是这样,您发现了什么样的性能差异?
谢谢, 埃里克
I am working with Azure Table Storage, and trying to figure out the best way to increase performance. The queries that I perform are very simple - either an exact select using partition key and row key, or a where clause with a list (e.g., WHERE x==1 or x==2 or x==3, etc). Once I get the data back, I don't track it in a data context (no need for change tracking, etc). Saving data is likewise, so I only add it to the context to enable the save.
At the moment, I am using the .NET library (storage client). As I don't use the change tracking and other features of the TableServiceContext, I am thinking about using the HTTP API directly. Has anyone tried both options? If so, what kind of performance difference did you see?
Thanks,
Erick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
表存储在优化性能方面可能有点变化无常。有多种因素会影响它。以下是我的一些想法:
我想还有更多取决于您的应用程序。然而,我提到的通常是我开始的那些。
Table storage can be a bit of a fickle beast to optimize performance. There are a variety of factors that will impact it. Here are just a few off the top of my head:
There are many more I suppose that depend on your application. However, the ones I mention are generally the ones I start with.
你把内格尔关掉了吗?
感兴趣的:
Have you turned Nagle off?
Of Interest: