azure-table-storage

Does the Azure Storage Table query entities really has number limitations?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 05:10:55
问题 From MSDN, it seems there's a limitation for the number of entities returned by the Query service: A query against the Table service may return a maximum of 1,000 entities at one time and may execute for a maximum of five seconds. But as I wrote a sample to show this issue, I didn't find any limitations for the number of returned entities, here is my key code: public class DataProvider { public static string PartitionKey { get { return "PartitionKey"; } } public static IEnumerable

how to get chat history from azure table storage

久未见 提交于 2019-12-04 03:53:33
Since we are forced to drop the stateclient and move to a custom storage, in my case an azure table storage . Using my storageexplorer I can see that it already saved conversation data on my azure. How can I update my ff code to get past chat history? Before I'm using a IActivityLogger class to log a conversation, but now I'm confused on how to update it. Global Asax Before: protected void Application_Start() { var builder = new ContainerBuilder(); builder.RegisterType<Logger>().AsImplementedInterfaces().InstancePerDependency(); builder.Update(Conversation.Container); GlobalConfiguration

Can PartitionKey be queried with StartsWith?

青春壹個敷衍的年華 提交于 2019-12-04 03:28:21
In Azure Table Storage, is it possible to query PartitionKey with a StartsWith or some other operator e.g. Contains, etc. I know I can do this with RowKeys but is it possible to do it with PartitionKeys? A follow up question is: even if it's doable, is it advisable? Should PartitionKey always be an exact match -- say, for performance reasons? Pedro G. Dias Well, the good news is that you CAN do partial matches, and you will get "good" performance as long as the number of partitions being hit is small. If you have lots of partition keys, performance will suffer. I could try to summarize an

Where is the “tableClient.CreateTableIfNotExist” in AzureStorage library v2?

旧城冷巷雨未停 提交于 2019-12-04 03:00:53
In Windows Azure Storage, we used to do this to create a table : var tableClient = account.CreateCloudTableClient(); tableClient.CreateTableIfNotExist(TableName); I just downloaded the last version of the azure storage library (v2), and my previous code doesn't work anymore : 'Microsoft.WindowsAzure.Storage.Table.CloudTableClient' does not contain a definition for 'CreateTableIfNotExist' and no extension method 'CreateTableIfNotExist' accepting a first argument of type 'Microsoft.WindowsAzure.Storage.Table.CloudTableClient' could be found. What is the good code in v2 ? In v2 there's some

How do I add an SMS from Twilio into Azure Table Storage using Logic App

泪湿孤枕 提交于 2019-12-04 02:24:10
问题 I am able to receive a text message into a Logic App, via a Twilio Web Hook. as set up by following these instructions Regarding my question here Now I need to add that text into an Azure Table. I have added a Parse JSON action What should I put in the Content and Schema? I found that if I click inside the Content Box I am prompted to pick from a tag. I guess Body is the one. [Update] Now I am trying to insert the Entity Directly but I cant work out how to do this in the designer. How do I

Azure Table Storage, WCF Service and Enum

旧时模样 提交于 2019-12-04 01:06:56
Here's my problem. A class which defines an order has a property called PaymentStatus , which is an enum defined like so: public enum PaymentStatuses : int { OnDelivery = 1, Paid = 2, Processed = 3, Cleared = 4 } And later on, in the class itself, the property definition is very simple: public PaymentStatuses? PaymentStatus { get; set; } However, if I try to save an order to the Azure Table Storage, I get the following exception: System.InvalidOperationException: The type Order+PaymentStatuses' has no settable properties. At this point I thought using enum isn't possible, but a quick Google

Retrieving many rows using a TableBatchOperation is not supported?

倖福魔咒の 提交于 2019-12-04 00:34:50
问题 Here is a piece of code that initialize a TableBatchOperation designed to retrieve two rows in a single batch: TableBatchOperation batch = new TableBatchOperation(); batch.Add(TableOperation.Retrieve("somePartition", "rowKey1")); batch.Add(TableOperation.Retrieve("somePartition", "rowKey2")); //second call throws an ArgumentException: //"A batch transaction with a retrieve operation cannot contain //any other operation" As mentionned, an exception is thrown, and it seems not supported to

TableQuery<T> from Azure TableStorage that filters on PartitionKey

混江龙づ霸主 提交于 2019-12-03 23:43:11
I'm trying to abstract geting all entities from a Table by partitionKey, like so: public List<T> GetEntities<T>(string partitionKey, T entity) where T : TableEntity { try { var tableClient = _account.CreateCloudTableClient(); var table = tableClient.GetTableReference(entity.GetType().Name.ToLower()); var exQuery = new TableQuery<T>().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, partitionKey)); var results = table.ExecuteQuery(exQuery).Select(ent => (T) ent).ToList(); return results; } catch (StorageException ex) { //TODO: Add more trace info Trace

The correct way to delete and recreate a Windows Azure Storage Table = Error 409 Conflict - Code : TableBeingDeleted

喜你入骨 提交于 2019-12-03 22:56:50
Im really new to Windows Azure development and have a requirement to store some data in a windows azure storage table. This table will really only exist to provide a quick lookup mechanism to some files which are located on azure storage drive. Therefore I was planning on populating this table at application start up (ie in web application global application start up) Rather than trying to maintain this table for changes the changes that could occur to the drive while the application is not running. Or as this drive is just a vhd of resources, we may well occasionally upload a new vhd. So

Azure Table Storage RowKey restricted Character Patterns?

微笑、不失礼 提交于 2019-12-03 18:57:41
问题 Are there restricted character patterns within Azure TableStorage RowKeys? I've not been able to find any documented via numerous searches. However, I'm getting behavior that implies such in some performance testing. I've got some odd behavior with RowKeys consisting on random characters (the test driver does prevent the restricted characters (/ \ # ?) plus blocking single quotes from occurring in the RowKey). The result is I've got a RowKey that will insert fine into the table, but cannot be