azure-table-storage

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

爷,独闯天下 提交于 2019-12-03 16:30:36
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 them in an Azure Table grouped by a partition key for each user. Retrieve all entries within the same

Get the Azure table Row count

纵然是瞬间 提交于 2019-12-03 15:55:25
I am new to Azure table storage. I want to get the total row count in a table. Currently Iam doing something like this:- public List<T> ReadAll(string partitionKey) { List<T> entities = new List<T>(); TableQuery<T> query = new TableQuery<T>().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, partitionKey.ToLower())); entities = Table.ExecuteQuery(query).ToList(); return entities; } This currently reads through all the table entries. This works ok when it comes to less records. But I am concerned when the records would increase and this method would be tedious. Is

Azure table storage - Simplest possible example

房东的猫 提交于 2019-12-03 15:37:45
问题 Whenever learning new technologies I like to write the simplest possible example. Usually this means a console app with the least number of references. I've been trying, with little success, to write an app that reads and writes to Azure table storage. I've used this how-to guide as a basis, but try to do everything in the Main method. Similar approach worked well with the blob storage, but the table storage is giving trouble. I was able to create a table with this code. static void Main

Getting started with Azure storage: Blobs vs Tables vs SQL Azure

ⅰ亾dé卋堺 提交于 2019-12-03 14:38:20
问题 It's quite a topic, blobs vs tables vs SQL , and despite all I read so far I still can't find some proper reasoning on what to use when. We have a multi-tenant SaaS web-application which we are about to move to Azure. We use an SQL Server 2008 database. We store documents and log information that belongs to the documents. Kinda like dropbox does. The forums state that you better use Azure Tables when you are considering "large" objects. We typically store hundreds of documents per user where

Azure Tables or SQL Azure?

狂风中的少年 提交于 2019-12-03 10:54:45
问题 I am at the planning stage of a web application that will be hosted in Azure with ASP.NET for the web site and Silverlight within the site for a rich user experience. Should I use Azure Tables or SQL Azure for storing my application data? 回答1: Azure Table Storage appears to be less expensive than SQL Azure. It is also more highly scalable than SQL Azure. SQL Azure is easier to work with if you've been doing a lot of relational database work. If you were porting an application that was already

Multiple filter conditions Azure table storage

喜你入骨 提交于 2019-12-03 10:39:02
问题 How can I set multiple filters on a Azure Table Storage? This is what I've tried: string partitionFilter = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "partition1"); string date1 = TableQuery.GenerateFilterCondition("Date", QueryComparisons.GreaterThanOrEqual, "31-8-2013T14:15:14Z"); string date2 = TableQuery.GenerateFilterCondition("Date", QueryComparisons.LessThanOrEqual, "31-8-2013T14:15:14Z"); string finalFilter = TableQuery.CombineFilters(partitionFilter,

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

[亡魂溺海] 提交于 2019-12-03 09:35:18
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? 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 ranges. Depending on your partitioning scheme, you may be able to select a subset of entities based on

Storage Client Library 2.0 - Why is the API not as intuitive to use as 1.7?

爱⌒轻易说出口 提交于 2019-12-03 09:23:14
I am migrating to using the new Storage Client Library for my Azure Table Storage. Querying with the previous Storage Client Library 1.7 namespace: var orders = serviceContext .CreateQuery<Order>(tableName) .AsTableServiceQuery<Order>() .Where(e => e.PartitionKey == partitionKey && e.RowKey == rowKey) Querying with the new Storage Client Library 2.0 classes: string partitionKeyFilter = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, partitionKey); string rowKeyFilter = TableQuery.GenerateFilterCondition("RowKey", QueryComparisons.Equal, rowKey); string combinedFilter

Is Azure CloudTable thread-safe?

拜拜、爱过 提交于 2019-12-03 09:19:31
问题 I'm writing to Azure Table storage using Storage SDK 2.0 from different threads (ASP.NET application). Is CloudTable object thread-safe ? Can I initialize CloudStorageAccount, CloudTableClient and CloudTable only once (for example, in static constuctor) and then use them in different threads? Or is it better to create all CloudStorageAccount, CloudTableClient and CloudTable objects each time from a blank (like it's shown in this article)? Does it affect the performance in any way? What is a

Windows Azure Table Services - Extended Properties and Table Schema

主宰稳场 提交于 2019-12-03 08:45:56
I have an entity that, in addition to a few common properties, contains a list of extended properties stored as (Name, Value) pairs of strings within a collection. I should probably mention that these extended properties widely vary from instance to instance, and that they only need to be listed for each instance (there won't be any queries over the extended properties, for example finding all instances with a particular (Name, Value) pair). I'm exploring how I might persist this entity using Windows Azure Table Services. With the particular approach I'm testing now, I'm concerned that there