azure-table-storage

Non-derived POCO and Azure Storage

∥☆過路亽.° 提交于 2019-12-05 06:15:56
Is it possible to have a non-derived POCO for Azure Table Storage? In other words, a POCO that does not derive from TableEntity or implement ITableEntity ? It seems a step backward to have to have a model which is dependent on the interface or base class, as this causes reference leaks upward in the chain - I cannot set up the model in another tier without it having to know about Azure Storage for either the interface or the base class! Take a look at DynamicTableEntity (ctrl+f for it). It can be used to query and insert entities. Using this type, you won't introduce any dependencies intor

Azure IoT Hub - Save telemetry best practice

瘦欲@ 提交于 2019-12-05 03:27:09
I am working on a IoT solution that will save weather data. I have googled for some days now on how to set up the backend. I am going to use Azure IoT Hub for handling communication, but the next step is the problem. I want to store the telemetry to a database. This is where I get confused. Some examples says that I should use Azure BLOB storage or Azure Table storage or Azure SQL. After some years of data collection I want to start creating reports of the data. So the storage needs to be good at working with big data. Next problem I am stuck on is the worker that will receive the D2C and

Can I delete an entire partition in Windows Azure Table Storage?

北城以北 提交于 2019-12-05 02:41:44
I have a set of rows in a partition that represents some cached data. I want to refresh that cache without any concern for what is already there. Is it possible to delete an entire partition without having to do any selects? No, but you can delete an entire table with one call, so you might consider making your partitions separate tables instead. (But, of course, you can't do cross-table queries.) 来源: https://stackoverflow.com/questions/7393651/can-i-delete-an-entire-partition-in-windows-azure-table-storage

Performance Azure Blob vs Azure Table

ぐ巨炮叔叔 提交于 2019-12-05 02:02:23
I have around 300 million text files, ranging from 50kb to 100kb that I need to read and serve on a web page . Remarks: On Azure Table, I would need to split some of the text files, to make sure it doesn't exceed the maximum of 64kb per column. On Azure Blob, I would not have the problem of splitting, but would need to store a reference to them on the Azure SQL/Azure Table. Okay, intro is done! Now, on my Azure Web App: Would be faster to read the text file from Azure Blob or from Azure Table? Would the Azure Table be able to process more requests? I agree with Andrei M. The best solution is

Do I use Azure Table Storage or SQL Azure for our CQRS Read System?

你说的曾经没有我的故事 提交于 2019-12-05 01:33:38
We are about to implement the Read portion of our CQRS system in-house with the goal being to vastly improve our read performance. Currently our reads are conducted through a web service which runs a Linq-to-SQL query against normalised data, involving some degree of deserialization from an SQL Azure database. The simplified structure of our data is: User Conversation (Grouping of Messages to the same recipients) Message Recipients (Set of Users) I want to move this into a denormalized state, so that when a user requests to see a feed of messages it reads from EITHER: A denormalized

Get the Azure table Row count

佐手、 提交于 2019-12-05 00:11:59
问题 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

Storing decimal data type in Azure Tables

爷,独闯天下 提交于 2019-12-04 23:09:40
Windows Azure Table Storage does not support the decimal data type. A suggested workaround is to use a custom attribute to serialize the decimal property as string: [EntityDataType(PrimitiveTypeKind.String)] public decimal Quantity { get; set; } How could this EntityDataType custom attribute be implemented so decimal properties can be stored and retrieved from Windows Azure Tables? You may override the WriteEntity method in TableEntity and use EntityResolver public class CustomTableEntity : TableEntity { private const string DecimalPrefix = "D_"; public override IDictionary<string,

Query execution on azure storage is very slow

柔情痞子 提交于 2019-12-04 21:14:34
I am trying to query against timestamp column on a azure table storage. I have a where condition which checks if input value is greater than timestamp value. azure Timestamp column is not a partition key or row key. I came to know querying against column which is not partition or row key will decrease performance of the query execution. My application is very slow when there are more and more records. I tried to move time stamps data to partition key data but partition key is not accepting time stamp value like "4/13/2016 5:20:03 AM +00:00". What would be the best option to increase query

Windows Azure table access latency Partition keys and row keys selection

时光总嘲笑我的痴心妄想 提交于 2019-12-04 19:41:13
We've got a windows azure table storage system going on where we have various entity types that report values during the day so we've got the following partition and row key scenario: 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 Each row records the values for an entity for that particular day. This is currently JSON serialized. The data is quite verbose. We will periodically want to look back at the values in these partitions over a month or two months

Azure Worker role Inner Exception of 'One of the request inputs is out of range.'

给你一囗甜甜゛ 提交于 2019-12-04 18:27:38
I'm calling the CloudTableClient.CreateTableIfNotExist Method in my worker role and I'm getting an exception with an Inner Exception of 'One of the request inputs is out of range.' I did a little research and found that this is caused by naming the table an illegal table name, however, I've tried name my table several different names and all have not succeeded. Some of the table names I've tried are: exceptions exceptioninfo listoferrors All of them have failed with the same error. EDIT Here is the code that I'm using to create the table: public static void InitializeTableStorage() { var