window存在的一些问题!
来源:互联网 发布:麦当劳 知乎 编辑:程序博客网 时间:2024/04/28 05:00
1」。 Some Tips for table service.
「1.1」 修改最大连接数,如果需要。
Config file:
代码:
ServicePointManager.DefaultConnectionLimit = 24;
「1.2」 Turn off 100-continue
Config file:
代码:
ServicePointManager.Expect100Continue = false;
「1.3」 关闭Context跟踪,如果用不上的环境(比如都是查询)
context.MergeOption = MergeOption.NoTracking;
「1.4」 合理利用PartitionKey & RowKey
具体参见: More about “PartitionKey”&"RowKey“ in windows azure table storage
<2> using customer httphandler in windows azure webrole, 在webrole中使用自定义HttpHandler.
由于部署以后的webrole实际运行在IIS7上面,如果您配置的是:
将会报错,正确的配置是在节点中。
<3> 使用role配置文件里的storage连接信息创建client account时,使用以下代码:
CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString");
出现以下错误:
Exception: SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used.
解决方案:
在 public override bool OnStart()中加入以下代码:
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
{
configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
RoleEnvironment.Changed += (anotherSender, arg) =>
{
if (arg.Changes.OfType()
。Any((change) => (change.ConfigurationSettingName == configName)))
{
if (!configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)))
{
RoleEnvironment.RequestRecycle();
}
}
};
});
- window存在的一些问题!
- Linux存在的一些问题
- 函数设计中存在的一些问题
- CSDN博客存在的一些问题
- IT公司存在的一些问题
- 土地面积测量存在问题的一些建议
- 网站建设公司存在的一些问题
- linux 关于aio存在的一些问题
- 驱动框架中存在的一些问题
- iframe,window,滚动条的一些问题
- window redis 安装遇到的一些问题
- VMware 下ubuntu的安装存在的一些问题
- PHP的libcurl中存在的一些问题
- 记忆 4 - 复用过程中存在的一些问题
- 关于R项目存在问题的一些解决方法
- EoE Proceeing problem--一些存在于EOE的问题
- 在c++中关于swap存在的一些问题
- java版danga的memcached客户端存在一些问题
- EntityFramework之领域驱动设计实践【总结】
- 数据结构 ⑦-树III
- Android开发之Shape自定义圆角按钮
- c语言的经验!
- openjudge 计算概论 字符串6:字符串最大跨距
- window存在的一些问题!
- FineUI 基于 ExtJS 的开源 ASP.NET 控件库
- windows cmd 递归计算某目录下文件数目
- openjudge 计算概论 函数与字符串练习(1)2:字符串排序
- 出现Note: Test.java uses unchecked or unsafe operations.Note: Recompile
- 九度oj 题目1447:最短路
- [模拟]Perfect Hash UVA188
- “add measurements”(添加度量)菜单问题
- openjudge 计算概论 字符串1:统计字符数