azure-table-storage

How do I use Azure TableClient 2.0 BeginExecuteQuerySegmented

拥有回忆 提交于 2019-11-27 07:26:45
问题 I'm trying to get all entries in my table asynchronously but am unable to figure out how to work with the continuation token. I suspect I need to take my anonymous method and convert it to a delegate, then recursively call it with the continuation token. How do I take the following code and perform an Async call and fetch all entries in the new API? Task<string[]> GetAllTableEntries(CloudTable tbl, string[] urls, string name, CancellationToken token) { TableRequestOptions reqOptions = new

NoSQL: Getting the latest values from tables DynamoDB/Azure Table Storage

依然范特西╮ 提交于 2019-11-27 05:28:41
问题 I have a little problem that needs some suggestions: Lets say we have a few hundred data tables with a few dozen million rows each. Data tables are timestamp(key) - value Data tables are written once every second The latest entry of each table should be quickly obtainable and will most likely be queried the most (sorta like "follow data in real time"). With the lack of 'Last()' or similar, I was thinking of creating another table "LatestValues" where the latest entry of each data table is

How to get all rows in Azure table Storage in C#?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 04:24:24
问题 I am trying to get a list of all entities inside an azure table. Any idea of how I would write this query? 回答1: To answer your question, you could do something like the following: var acc = new CloudStorageAccount( new StorageCredentials("account name", "account key"), true); var tableClient = acc.CreateCloudTableClient(); var table = tableClient.GetTableReference("table name"); var entities = table.ExecuteQuery(new TableQuery<MyEntity>()).ToList(); However please keep in mind that table

How to retrieve Saved Conversation Data in Azure (Tablelogger)

你离开我真会死。 提交于 2019-11-27 03:38:17
问题 i was able to saved conversation data using the tablelogger.cs implementation TableLogger.cs I followed this tutorial to save the conversation history. Logging Conversation History The code i used to save the chat history was: var tableName = ConfigurationManager.AppSettings["TableName"].ToString(); var account = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); Conversation.UpdateContainer( builder => { account

Fastest way of querying for latest items in a Azure table?

北慕城南 提交于 2019-11-27 02:14:27
问题 I have a Azure table where customers post messages, there may be millions of messages in a single table. I want to find the fastest way of getting the messages posted within the last 10 minutes (which is how often I refresh the web page). Since only the partition key is indexed I have played with the idea of using the date & time the message was posted as a partition key, for example a string as a ISO8601 date format like "2009-06-15T13:45:30.0900000" Example pseudo code: var message = "Hello

How to achive more 10 inserts per second with azure storage tables

孤人 提交于 2019-11-27 00:58:02
问题 I write simple WorkerRole that add test data in to table. The code of inserts is like this. var TableClient = this.StorageAccount.CreateCloudTableClient(); TableClient.CreateTableIfNotExist(TableName); var Context = TableClient.GetDataServiceContext(); this.Context.AddObject(TableName, obj); this.Context.SaveChanges(); This code runs for each client requests. I do test with 1-30 client threads. I have many trys with various count of instances of various sizes. I don't know what I do wrong but

When should I use Sql Azure and when should I use table Storage?

可紊 提交于 2019-11-27 00:00:41
问题 When should i use Sql Azure and when should I use table Storage? I was thinking , use table storage for transaction processing scenarios e.g. debit credit accounts kind of scenario and use Sql Azure when data will not be used for transactional purposes e.g reporting. What do you think? 回答1: This is an excellent question and one of the tougher and harder to reverse decisions that solution architects have to make when designing for Azure. There are mutliple dimensions to consider: On the

Windows Azure - Cleaning Up The WADLogsTable

元气小坏坏 提交于 2019-11-26 22:48:30
问题 I've read conflicting information as to whether or not the WADLogsTable table used by the DiagnosticMonitor in Windows Azure will automatically prune old log entries. I'm guessing it doesn't, and will instead grow forever - costing me money. :) If that's the case, does anybody have a good code sample as to how to clear out old log entries from this table manually? Perhaps based on timestamp? I'd run this code from a worker role periodically. 回答1: The data in tables created by Windows Azure

Azure table storage returns 400 Bad Request

断了今生、忘了曾经 提交于 2019-11-26 18:58:05
问题 I ran this in debug mode, and I attach an image with the details of the exception. How can I know what went wrong? I was trying to inset data in a table. Can't azure give me more details? Obs: The storage is on Windows Azure not on my machine. The tables were created, but I get this error when inserting data // Retrieve the storage account from the connection string. Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse(