Batch Uploading Huge Sets of Images to Azure Blob Storage

前端 未结 6 1672
抹茶落季
抹茶落季 2021-02-06 01:08

I have about 110,000 images of various formats (jpg, png and gif) and sizes (2-40KB) stored locally on my hard drive. I need to upload them to Azure Blob Storage. While doing th

6条回答
  •  执念已碎
    2021-02-06 01:39

    You may want to increase ParallelOperationThreadCount as shown below. I haven't checked the latest SDK, but in 1.3 the limit was 64. Not setting this value resulted in lower concurrent operations.

    CloudBlobClient blobStorage = new CloudBlobClient(config.AccountUrl, creds);
    // todo: set this in blob extensions
    blobStorage.ParallelOperationThreadCount = 64
    

提交回复
热议问题