azure-table-storage

Do Azure table services entities have an equivalent of NonSerializedAttribute?

只谈情不闲聊 提交于 2019-11-29 09:33:16
If I'm trying to serialize a normal CLR object, and I do not want a particular member variable to be serialized, I can tag it with the [NonSerialized] attribute. If I am creating a table services entity, is there an equivalent attribute I can use to tell Azure table services to ignore this property? For Version 2.1 there is a new Microsoft.WindowsAzure.Storage.Table.IgnoreProperty attribute. See the 2.1 release notes for more information: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/09/07/announcing-storage-client-library-2-1-rtm.aspx . There's no equivalent I know of. This post

Querying Windows Azure Table Storage with multiple query criteria

≡放荡痞女 提交于 2019-11-29 09:23:56
I'm trying to query a table in Windows Azure storage and was initially using the TableQuery.CombineFilters in the TableQuery<RecordEntity>().Where function as follows: TableQuery.CombineFilters( TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.GreaterThanOrEqual, lowDate), TableOperators.And, TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.LessThanOrEqual, lowDate), TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, entityId) )); Unfortunately CombineFilters only allows 2 query criteria max. So I'm currently doing this: var

How to store & retrieve Bot Data in Azure Table storage with directLine channel?

℡╲_俬逩灬. 提交于 2019-11-29 08:31:32
I'm using Microsoft Bot Framework with directLine channel. My Bot is a part of company's customer portal from where I fetch some user information and store it in BotState using stateClient as shown below public ActionResult Index() { var userId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value; GetTokenViaBootStrap().Wait(); var botCred = new MicrosoftAppCredentials( ConfigurationManager.AppSettings["MicrosoftAppId"], ConfigurationManager.AppSettings["MicrosoftAppPassword"]); var stateClient = new StateClient(botCred); BotState botState = new BotState(stateClient); BotData

python querying all rows of azure table

感情迁移 提交于 2019-11-29 05:09:44
I have around 20000 rows in my azure table . I wanted to query all the rows in the azure table . But due to certain azure limitation i am getting only 1000 rows. My code from azure.storage import TableService table_service = TableService(account_name='xxx', account_key='YYY') i=0 tasks=table_service.query_entities('ValidOutputTable',"PartitionKey eq 'tasksSeattle'") for task in tasks: i+=1 print task.RowKey,task.DomainUrl,task.Status print i I want to get all the rows from the validoutputtable .Is there a way to do so But due to certain azure limitation i am getting only 1000 rows. This is a

Count rows within partition in Azure table storage

回眸只為那壹抹淺笑 提交于 2019-11-29 04:14:12
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? 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 payload by using a technique called Query Projection . A query projection allows you to specify the list of

Timestamp query in Azure

流过昼夜 提交于 2019-11-29 04:08:16
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("PartitionKey", QueryComparisons.Equal, "1005"), TableOperators.And, TableQuery.GenerateFilterCondition(

Azure web/worker role read configuration settings

[亡魂溺海] 提交于 2019-11-28 20:21:49
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 ... Gaurav Mantri 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 GetSetting method will return the setting value from the Web.config or app.config file. If the

Generic class for performing mass-parallel queries. Feedback?

限于喜欢 提交于 2019-11-28 19:47:24
I don't understand why, but there appears to be no mechanism in the client library for performing many queries in parallel for Windows Azure Table Storage. I've created a template class that can be used to save considerable time, and you're welcome to use it however you wish. I would appreciate however, if you could pick it apart, and provide feedback on how to improve this class. public class AsyncDataQuery<T> where T: new() { public AsyncDataQuery(bool preserve_order) { m_preserve_order = preserve_order; this.Queries = new List<CloudTableQuery<T>>(1000); } public void AddQuery(IQueryable<T>

Microsoft Azure DocumentDB vs Azure Table Storage

谁说我不能喝 提交于 2019-11-28 16:59:00
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.microsoft.com/en-us/documentation/services/documentdb/ ) Instead of storing a list of properties

Azure Table Vs MongoDB on Azure

本小妞迷上赌 提交于 2019-11-28 16:18:18
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. Table Storage is a core Windows Azure storage feature, designed to be scalable ( 100TB 200TB 500TB per account), durable (triple-replicated in the data center, optionally georeplicated to another data center), and schemaless (each row may contain