azure-table-storage

Azure Table Storage Exception Information

痞子三分冷 提交于 2019-12-21 06:19:29
问题 Finding debugging Azure table storage incredibly frustrating. Until I learn about the various limitations, trying to find the cause of incredibly informative DataServiceQueryException with a code of InvalidInput is difficult to say the least. After much scouring the web, the post at http://blogs.msdn.com/b/partlycloudy/archive/2009/12/16/development-storage-logging.aspx shows how to turn on logging. This populates the error log file with much more, very useful information. It is probably not

How do I retrieve multiple types of entities using a single query to Azure Table Storage?

筅森魡賤 提交于 2019-12-21 05:02:18
问题 I'm trying to grasp how Azure table storage works to create facebook-style feeds and I'm stuck on how to retrieve the entries. (My questions is almost the same as https://stackoverflow.com/questions/6843689/retrieve-multiple-type-of-entities-from-azure-table-storage but the link in the answer is broken.) This is my intended approach: Create a personal feed for all users within my application which can contain different types of entries (notification, status update etc). My idea is to store

Can PartitionKey be queried with StartsWith?

那年仲夏 提交于 2019-12-21 04:07:02
问题 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? 回答1: 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.

What is the azure table storage query equivalent of T-sql's LIKE command?

て烟熏妆下的殇ゞ 提交于 2019-12-21 03:13:21
问题 I'm querying Azure table storage using the Azure Storage Explorer. I want to find all messages that contain the given text, like this in T-SQL: message like '%SysFn%' Executing the T-SQL gives "An error occurred while processing this request" What is the equivalent of this query in Azure? 回答1: There's no direct equivalent, as there is no wildcard searching. All supported operations are listed here. You'll see eq, gt, ge, lt, le, etc. You could make use of these, perhaps, to look for specific

What is the azure table storage query equivalent of T-sql's LIKE command?

可紊 提交于 2019-12-21 03:13:17
问题 I'm querying Azure table storage using the Azure Storage Explorer. I want to find all messages that contain the given text, like this in T-SQL: message like '%SysFn%' Executing the T-SQL gives "An error occurred while processing this request" What is the equivalent of this query in Azure? 回答1: There's no direct equivalent, as there is no wildcard searching. All supported operations are listed here. You'll see eq, gt, ge, lt, le, etc. You could make use of these, perhaps, to look for specific

Using POCOs when persisting to Azure Table Storage

扶醉桌前 提交于 2019-12-20 21:21:24
问题 I'm planning to use Azure Table Storage in my ASP.NET 5 (MVC 6) app and have added the WindowsAzure.Storage NuGet package, but I got really disappointed when I noticed that all my entnty models need to inherit from Microsoft.WindowsAzure.Storage.Table.TableEntity . Now I'm thinking the best solution is to have 2 sets of entities and create mappings between my main domain objects and the entity objects used to persist to Table Storage. I don't want to add the WindowsAzure.Storage package to

About Azure Table Storage Row 1MB Limit, How it counts for UTF8 Code?

半世苍凉 提交于 2019-12-20 20:34:33
问题 Lets first quote: Combined size of all of the properties in an entity cannot exceed 1MB. (for a ROW/Entity) from msdn My Questions is : Since everything is XMLed data, so for 1MB, is 1MB of what, 1MB of ASCII Chars, or 1MB of UTF8 Chars, or something else? Sample : Row1: PartitionKey="A', RowKey="A", Data="A" Row2: PartitionKey="A', RowKey="A", Data="A" (this is a UTF8 unicode A) Is Row1 and Row2 same size (in length), or Row2.Length=Row1.Length+1 ? 回答1: Single columns such as "Data" in your

Azure Tables: best practices for choosing partition/row keys

旧城冷巷雨未停 提交于 2019-12-20 10:17:19
问题 What would be best practices for choosing partition/row keys for entities in Azure Tables? The common advice is to magically balance between partition size and number of partitions. But no one seems to have a good definition of how it can be accomplished in 3 easy steps. Is there a general approach for choosing keys so that everything then just works? 回答1: There is a detailed article on this very subject up on MSDN: Designing a scalable partitioning strategy for Windows Azure Storage. 回答2: I

Implementing set-based constraints in CQRS

泪湿孤枕 提交于 2019-12-20 10:13:16
问题 I'm still struggling with what must be basic (and resolved) issues related to CQRS style architecture: How do we implement business rules that rely on a set of Aggregate Roots? Take, as an example, a booking application. It may enable you to book tickets for a concert, seats for a movie or a table at a restaurant. In all cases, there's only going to be a limited number of 'items' for sale. Let's imagine that the event or place is very popular. When sales open for a new event or time slot,

Azure diagnostics and WadLogsTable

拥有回忆 提交于 2019-12-20 05:59:31
问题 I deployed an application on Windows Azure, i activated the diagnostic monitor like follows : public override bool OnStart() { CloudStorageAccount account = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=[xxxxxx];AccountKey=[xxxxxxx]"); var config = DiagnosticMonitor.GetDefaultInitialConfiguration(); config.Logs.ScheduledTransferLogLevelFilter = LogLevel.Information; config.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1D); DiagnosticMonitor.Start(account, config)