上传到云期间要选择多少线程?

时间:2016-04-20 14:12:05

标签: c# multithreading azure-storage

我正在创建有效上传页面blob的算法

using (var memoryStream = new MemoryStream(adjustmentBuffer, 0, bytesToWriteNow, false, false))
{
    _pageBlob.WritePages(memoryStream, Position, null, null, 
                     new BlobRequestOptions { ParallelOperationThreadCount = ?? });
}

如何选择ParallelOperationThreadCountSingleBlobUploadThresholdInBytes

1 个答案:

答案 0 :(得分:0)

感谢您的提问,我建议您从Azure存储性能和可伸缩性核对表开始,根据您的应用程序和性能要求(https://azure.microsoft.com/en-us/documentation/articles/storage-performance-checklist)回答此问题。如果这没有帮助,请回复。谢谢。