Azure存储工作台尺寸 [英] Azure Storage Table size

查看:180
本文介绍了Azure存储工作台尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

天青帐单是基于所用空间的大小。现在,我需要知道的细节。这是每个存储对象的大小在我的存储(一滴容器,单个表)?

Azure billing is based on the size of used space. Now I need to know the details. What is the size of each storage object in my storage (blob container, single table)?

这很容易写一个code,列举所有的斑点,并计算每个集装箱的整体规模。但什么表? 我怎样才能得到一定的表的Azure存储的大小?

It's easy to write a code that enumerates all blobs and calculates the overall size per container. But what about tables? How can I get the size of a certain table in Azure storage?

推荐答案

如果你没有兴趣获得通过的blob容器分手,你不必远写code作为寻找Blob存储大小有关。这些信息通过存储分析是提供给您( http://msdn.microsoft .COM / EN-US /库/ windowsazure / hh343270.aspx )。您感兴趣的表是的 $ MetricsCapacityBlob (适用的 http://msdn.microsoft.com/en-us/library/windowsazure/hh343264.aspx )。

If you're not interested in getting a breakup by blob container, you don't have to write the code as far as finding the blob storage size is concerned. This information is available to you via storage analytics (http://msdn.microsoft.com/en-us/library/windowsazure/hh343270.aspx). The table of interest to you would be $MetricsCapacityBlob (http://msdn.microsoft.com/en-us/library/windowsazure/hh343264.aspx).

来到表,可惜没有这样的东西可用,你会需要获取的所有实体,并计算每个实体的大小来查找表的大小。你会发现这个博客帖子在计算实体的大小有用:<一href=\"http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/30/how-the-size-of-an-entity-is-caclulated-in-windows-azure-table-storage.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/30/how-the-size-of-an-entity-is-caclulated-in-windows-azure-table-storage.aspx.

Coming to tables, unfortunately no such thing is available and you would need to fetch all entities and calculate the size of each entity to find the table size. You may find this blog post useful in calculating the size of an entity: http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/30/how-the-size-of-an-entity-is-caclulated-in-windows-azure-table-storage.aspx.

心连心。

这篇关于Azure存储工作台尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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