天蓝色表中的奇怪行为
我正在调查对存储在天蓝色表中的实体进行更新的性能,并观察到一些奇怪的行为。
我有一个简单的实体,仅包含一个字段 - 如下所示的文本:
public class TestEntity : TableServiceEntity
{
public string Text { get; set; }
}
对于该实体,部署到 azure 时,我看到更新时间在 150 - 200ms 之间。
然后我向其中添加一些虚拟属性(不要让我开始我是如何想到这个想法的;)
public class TestEntity : TableServiceEntity
{
public string Text { get; set; }
public string ShowSomeStuffProp1{ get; set; }
public string ShowSomeStuffProp2{ get; set; }
public string ShowSomeStuffProp3{ get; set; }
public string ShowSomeStuffProp4{ get; set; }
public string ShowSomeStuffProp5{ get; set; }
public string ShowSomeStuffProp6{ get; set; }
public string ShowSomeStuffProp7{ get; set; }
}
现在对于这个“新”实体,我得到的更新时间在30 - 45ms<之间/强>!!!
我做了一些实验(每次部署到 azure)并且“虚拟”属性不能有更短的名称 - 否则时间会回到 200 毫秒。
我想知道我是否疯了,或者其他人也观察到了一些奇怪的行为。
我仍然想在另一个帐户上重复这一点,但我很感激您的反馈。
谢谢!
I was investigating performance of updates done to entity stored in azure tables and I observed some strange behavior.
I have a simple entity that consists of just one filed - Text like below:
public class TestEntity : TableServiceEntity
{
public string Text { get; set; }
}
For this entity I see update times between 150 - 200ms when deployed to azure.
Then I add some dummy properties to it (don't get me started how I came up with that idea ;)
public class TestEntity : TableServiceEntity
{
public string Text { get; set; }
public string ShowSomeStuffProp1{ get; set; }
public string ShowSomeStuffProp2{ get; set; }
public string ShowSomeStuffProp3{ get; set; }
public string ShowSomeStuffProp4{ get; set; }
public string ShowSomeStuffProp5{ get; set; }
public string ShowSomeStuffProp6{ get; set; }
public string ShowSomeStuffProp7{ get; set; }
}
Now for this "new" entity I get update times between 30 - 45ms!!!
I did some experiments (each time deploying to azure) and the "dummy" properties can't have shorter names - otherwise the time goes back to 200ms.
I'm wondering if I had gone mad or is that some strange behavior that was observed by someone else as well.
I still want to repeat that on another account, but I'd appreciate the feedback.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论