Welcome to the Windows community forum and interact with the 3 million technical staff to go to "1 」. SomeTipsfortableservice. "1.1" to modify the maximum number of connections, if required. Configfile: system. netconnectionManagementaddaddress * maxconnection24connectionManagements
Welcome to the Windows community forum and interact with the 3 million technical staff> go to "1 」. Some Tips for table service. "1.1" to modify the maximum number of connections, if required. Config file: system.net connectionManagement add address = "*" maxconnection = "24" // connectionManagement/s
Welcome to the Windows community forum and interact with 3 million technicians>
「 1 」. Some Tips for table service.
"1.1" to change the maximum number of connections, if required.
Config file:
Code:
ServicePointManager. DefaultConnectionLimit = 24;
「 1.2 」 Turn off 100-continue
Config file:
Code:
ServicePointManager. Expect100Continue = false;
"1.3" disables Context tracing. If the Context cannot be used (for example, query is used)
Context. MergeOption = MergeOption. NoTracking;
"1.4" reasonably utilizes PartitionKey & RowKey
For details, see "More about" PartitionKey "&" RowKey "in windows azure table storage
<2> using customer httphandler in windows azure webrole: use custom HttpHandler in webrole.
Because the deployed webrole actually runs on IIS7, If you configure:
An error will be reported. The correct configuration is in Node.
<3> use the following code to create a client account using the storage connection information in the role configuration file:
CloudStorageAccount account = CloudStorageAccount. FromConfigurationSetting ("DataConnectionString ");
The following error occurs:
Exception: SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used.
Solution:
Add the following code to 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 ();
}
}
};
});