Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure-图像元数据的FetchAttributes与表存储_C#_Azure - Fatal编程技术网

C# Azure-图像元数据的FetchAttributes与表存储

C# Azure-图像元数据的FetchAttributes与表存储,c#,azure,C#,Azure,我有几千张著名艺术品的图片存储在Azure容器存储中。每个图像都有一些与之相关的艺术品信息,例如标题、艺术家、年份等。目前,这些信息存储在Azure Table storage中,我在那里根据图像ID进行检索。但是,将这些信息存储为图像的属性数据,然后调用是否更好(在性能和最佳实践方面): var myAttributes = myBlockBlob.FetchAttributesAsync(); 以下是我使用Azure Table Retrieve执行此操作的当前方式: var myGetO

我有几千张著名艺术品的图片存储在Azure容器存储中。每个图像都有一些与之相关的艺术品信息,例如标题、艺术家、年份等。目前,这些信息存储在Azure Table storage中,我在那里根据图像ID进行检索。但是,将这些信息存储为图像的属性数据,然后调用是否更好(在性能和最佳实践方面):

var myAttributes = myBlockBlob.FetchAttributesAsync();
以下是我使用Azure Table Retrieve执行此操作的当前方式:

var myGetOperation = TableOperation.Retrieve<TileInfoEntity>("0", imageID);
var myResult = await myTable.ExecuteAsync(myGetOperation);
var myGetOperation=TableOperation.Retrieve(“0”,imageID);
var myResult=await myTable.ExecuteAsync(myGetOperation);

提前感谢。

处理内容元数据不一定有正确或错误的方法-您可以将其存储在任何您想要的地方

请记住:blob存储不提供元数据的查询工具,因此除了直接读取特定blob的元数据外,没有直接处理元数据的方法


像表存储这样的存储系统允许基于分区和/或行键的查询,提供不同的数据类型,提供CRUD操作等。与任何其他数据库引擎一样,因为它们都提供了某种类型的索引/查询支持。

唯一比从表存储中检索更快的方法是使用所有元数据预热a并从中提取

cache.StringSet(“key1”、“value1”);
字符串值=cache.StringGet(“key1”);
老实说,如果我们不讨论每秒至少1k的请求,我认为性能提升不会太大

如果您的请求格式良好(即看起来像静态对象),那么它也是一个很好的候选对象


知道你的瓶颈在哪里-不要优化你的遥测技术没有指出的东西