Besides the usual overhead of creating an object, I see no problem when creating multiple instances of CloudTableClient and CloudTable . Therefore, if you simply do the following, I do not think that you will succeed in performance:
var tableClient = storageAccount.CreateCloudTableClient(); var table = tableClient.GetTableReference("farematrix");
However, I see a problem with the way you create CloudTable in your code (a member of Table ). Essentially in your code, when you get the Table property from EntityStorageComponent , you are trying to create a table in your storage account.
var table = tableClient.GetTableReference("farematrix"); table.CreateIfNotExists(requestOptions, context);
This is a problem because table.CreateIfNotExists(requestOptions, context); will make a network call and significantly slow down your system. You might want to print the code table.CreateIfNotExists(requestOptions, context); and put it in the startup code so that you are always sure (basically) that the table is present.
source share