Followers

Friday, 1 April 2016

Azure Delete Blob Performance Slow - C# - MVC

Source: stackoverflow.com --- Thursday, March 31, 2016
I'm using Microsoft Azure for hosting a website. I'm trying to delete a simple blob. This works, but it is very very slow: CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings.Get("StorageConnectionString")); var storageClient = storageAccount.CreateCloudBlobClient(); var storageContainer = storageClient.GetContainerReference(System.Configuration.ConfigurationManager.AppSettings["StorageContainer"]); CloudBlockBlob azureBlockBlob = storageContainer.GetBlockBlobReference(fileName); azureBlockBlob.Delete(); If i'm trying to delete multiple blobs in a loop, it is more slowly. Maybe it depends on the location from the Azure VM to the CDN?! Does anyone have a simple solution for this? ...



from Microsoft http://ift.tt/1UuRerX

No comments:

Post a Comment