azure-table-storage

Count rows within partition in Azure table storage

谁都会走 提交于 2019-11-27 22:16:00
问题 I've seen various questions around SO about how to get the total row count of an Azure storage table, but I want to know how to get the number of rows within a single partition. How can I do this while loading a minimal amount of entity data into memory? 回答1: As you may already know that there's no Count like functionality available in Azure Tables. In order to get the total number of entities (rows) in a Partition (or a Table), you have to fetch all entities. You can reduce the response

Timestamp query in Azure

二次信任 提交于 2019-11-27 22:15:38
问题 I am really stuck in my query filter on Azure table storage. May I know how to query with timestamp please? When I query for partition key to 1005 alone, I am getting the complete table which I don't want. When I added "and" condition with timestamp (tried with lots of formats but it is not returning anything. Code snippet below : var lowerlimit = DateTime.Today.AddDays(-52).ToString("yyyy-MM-dd"); string dateRangeFilter = TableQuery.CombineFilters( TableQuery.GenerateFilterCondition(

Windows Azure - Cleaning Up The WADLogsTable

北战南征 提交于 2019-11-27 19:29:47
I've read conflicting information as to whether or not the WADLogsTable table used by the DiagnosticMonitor in Windows Azure will automatically prune old log entries. I'm guessing it doesn't, and will instead grow forever - costing me money. :) If that's the case, does anybody have a good code sample as to how to clear out old log entries from this table manually? Perhaps based on timestamp? I'd run this code from a worker role periodically. corvus The data in tables created by Windows Azure Diagnostics isn't deleted automatically. However, Windows Azure PowerShell Cmdlets contain cmdlets

Azure table storage returns 400 Bad Request

与世无争的帅哥 提交于 2019-11-27 17:21:54
I ran this in debug mode, and I attach an image with the details of the exception. How can I know what went wrong? I was trying to inset data in a table. Can't azure give me more details? Obs: The storage is on Windows Azure not on my machine. The tables were created, but I get this error when inserting data // Retrieve the storage account from the connection string. Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=***;AccountKey=***"); // Create the table client.

Azure Functions Table Binding: How do I update a row?

允我心安 提交于 2019-11-27 15:00:25
问题 I am trying to update a row in an Azure table based on an Azure Function. I see that the Table bindings can handle an ICollector which has an Add method which will add a row. I also see that you use an IQueryable to read the data. How do you go about updating a specific row in the data? I saw in WebJobs something related to InsertOrReplace which is a method of TableOperations but I don't know if or how that comes into play and how to use it with Azure Functions. 回答1: Following is one way you

Azure web/worker role read configuration settings

亡梦爱人 提交于 2019-11-27 13:03:38
问题 What is the best way/recommended way to read settings from a worker/web role? Is it: CloudConfigurationManager.GetSetting("ConnectionString") (this I'm using) or RoleEnvironment.GetConfigurationSettingValue("ConnectionString") Although both work fine ... 回答1: From the documentation for CloudConfigurationManager.GetSetting: The GetSetting method reads the configuration setting value from the appropriate configuration store. If the application is running as a .NET Web application, the

Where can I get a list of Unicode chars by class?

吃可爱长大的小学妹 提交于 2019-11-27 11:30:46
问题 I'm new to learning Unicode, and not sure how much I have to learn based on my ASCII background, but I'm reading the C# spec on rules for identifiers to determine what chars are permitted within Azure Table (which is directly based on the C# spec). Where can I find a list of Unicode characters that fall into these categories: letter-character : A Unicode character of classes Lu, Ll, Lt, Lm, Lo, or Nl combining-character : A Unicode character of classes Mn or Mc decimal-digit-character : A

Microsoft Azure DocumentDB vs Azure Table Storage

若如初见. 提交于 2019-11-27 10:08:38
问题 For several recent years, Microsoft offers a "NoSQL" key/value storage, called "Table Storage" (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-tables/) Table Storage offers a high performance, scalability (via partitioning) and relatively low cost. A primary drawback of Tables that only Partition and Row keys can be indexed - so making queries on values is very inefficient. Recently Microsoft announced a new "NoSQL" service, called "DocumentDB" (http://azure

Azure Table Vs MongoDB on Azure

懵懂的女人 提交于 2019-11-27 09:39:08
问题 I want to use a NoSQL database on Windows Azure and the data volume will be very large. Whether a Azure Table storage or a MongoDB database running using a Worker role can offer better performance and scalability? Has anyone used MongoDB on Azure using a Worker role? Please share your thoughts on using MongoDB on Azure over the Azure table storage. 回答1: Table Storage is a core Windows Azure storage feature, designed to be scalable ( 100TB 200TB 500TB per account), durable (triple-replicated

Very Slow on Azure Table Storage Query on PartitionKey/RowKey List

强颜欢笑 提交于 2019-11-27 08:34:43
问题 GET /Product()?$filter=((PartitionKey%20eq%20'lIkfA81JpTmv')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIGcEmrr7hWz')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIAoy6PqeMVn')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIjETAtuhYGM')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIHa0znP5qAk')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIOCaSXg9YE7')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20