azure-table-storage

How do I extract “eTag” or “x-ms-request-id” from my Astoria DataContext response?

一世执手 提交于 2020-01-16 11:09:25
问题 The Azure table whitepaper mentions that the x-ms-request-id is useful to send to Microsoft in the event there is an error working with the data. If I do have such an error, I'd like my try...catch block to take this and save it somewhere for future analysis. In addition I need to extract the ETag value as well while in Table storage. How do I extract this information and have it available when the Exception comes around? HTTP/1.1 204 No Content Content-Length: 0 ETag: W/"datetime'2008-10

Date range queries in Azure Table storage

耗尽温柔 提交于 2020-01-14 09:58:06
问题 Hello following on from my question: Windows Azure table access latency Partition keys and row keys selection about the way I have organised data in my Azure storage account. I have a table storage scheme designed to store info about entities. There are about 4000 - 5000 entities. There are 6 entity types and the types are roughly evenly distributed. so around 800'ish each. ParitionKey: entityType-Date Row key: entityId As the question details I have been sufferring latency issues where

How to perform a case-sensitive LINQ query in Azure?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 12:32:49
问题 I am using Windows Azure Storage Tables, and want to query for an object. The user inputs a string, which I look for in the database as such: var myKey = "SomeCaseSensitiveKeyInputByTheUser"; var someObject = (from o in dataContext.Objects where o.SomeString.Equals(myKey) select o).FirstOrDefault(); However, for some reason, all string comparisons appear to be case insensitive (both == and string.Equals() ). However, I need to match the exact casing of the user input string. How can I do this

Azure Table Storage Warning - WCF Data Services obsolete

此生再无相见时 提交于 2020-01-04 21:37:04
问题 After upgrading to the new storage API version 4.2, I'm getting the following warning that I'm calling obsolete methods on some of my segmented queries. 'Microsoft.WindowsAzure.Storage.Table.CloudTableClient.GetTableServiceContext()' is obsolete: 'Support for accessing Windows Azure Tables via WCF Data Services is now obsolete. It's recommended that you use the Microsoft.WindowsAzure.Storage.Table namespace for working with tables.' So far I haven't been able to figure out how to achieve this

Azure Table Storage Warning - WCF Data Services obsolete

假如想象 提交于 2020-01-04 21:34:56
问题 After upgrading to the new storage API version 4.2, I'm getting the following warning that I'm calling obsolete methods on some of my segmented queries. 'Microsoft.WindowsAzure.Storage.Table.CloudTableClient.GetTableServiceContext()' is obsolete: 'Support for accessing Windows Azure Tables via WCF Data Services is now obsolete. It's recommended that you use the Microsoft.WindowsAzure.Storage.Table namespace for working with tables.' So far I haven't been able to figure out how to achieve this

Does the Azure table storage API cache results?

不打扰是莪最后的温柔 提交于 2020-01-04 02:47:10
问题 When I run the same query multiple times against the Azure table storage, is it using caching and speeding up the subsequent queries? In other words, is it caching the HTTP response? 回答1: Azure storage definitly use caching: http://www.scribd.com/doc/73458371/Windows-Azure-Storage-at-23rd-ACM-Symposium-on-Operating-Systems-Principles-SOSP-Paper Note that writes are actually kept in memory until correctly replicated and I think it's safe to assume that any reads are cached too so that multiple

Does the Azure table storage API cache results?

人盡茶涼 提交于 2020-01-04 02:47:09
问题 When I run the same query multiple times against the Azure table storage, is it using caching and speeding up the subsequent queries? In other words, is it caching the HTTP response? 回答1: Azure storage definitly use caching: http://www.scribd.com/doc/73458371/Windows-Azure-Storage-at-23rd-ACM-Symposium-on-Operating-Systems-Principles-SOSP-Paper Note that writes are actually kept in memory until correctly replicated and I think it's safe to assume that any reads are cached too so that multiple

Max $filter comparisons in an Azure Table Query

自古美人都是妖i 提交于 2020-01-04 02:16:09
问题 This page (https://docs.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities) says: Note that no more than 15 discrete comparisons are permitted within a $filter string. However in my experiments I have hit that limit and not had any side effects. For example, this is from Azure Storage Explorer: Statistics for storageacct/table ("PartitionKey eq '1' or PartitionKey eq '2' or PartitionKey eq '3' or PartitionKey eq '4' or PartitionKey eq '5' or PartitionKey eq '6' or

Could not load file or assembly 'Microsoft.Azure.Documents.Client - Azure-Table-Api

不羁的心 提交于 2020-01-02 08:33:27
问题 I am trying to use Azure Table Api with dotnet core and I keep getting this exception: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Azure.Documents.Client, Version=1.20.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. at Microsoft.Azure.CosmosDB.Table.CloudTableClient..ctor(StorageUri storageUri, StorageCredentials credentials, TableConnectionPolicy connectionPolicy, Nullable`1

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

让人想犯罪 __ 提交于 2020-01-01 16:58:48
问题 Simple question but lots of meaning/discussion behind!!! Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81? 回答1: Follow the steps to change 127.0.0.1 to desire IP Compute Emulator Settings: Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devfabric Take backup of “DevFC.exe.config” so that if something goes you can revert it back. Change following settings to desired IP address range and subnet: <add key="StartIPAddress"