azure-table-storage

Azure Storage Emulator error and does not start

和自甴很熟 提交于 2019-11-28 15:58:20
问题 This error is really driving me crazy. (Terminal running in administrator mode) Initialization of azure storage emulator in sql server 2014: C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator>.\wastorage emulator init -server MY-PC Windows Azure Storage Emulator 3.0.0.0 command line tool The storage emulator was successfully initialized and is ready to use. Error when starting server: C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator>.\wastorage emulator

Very Slow on Azure Table Storage Query on PartitionKey/RowKey List

偶尔善良 提交于 2019-11-28 14:21:59
GET /Product()?$filter=((PartitionKey%20eq%20'lIkfA81JpTmv')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIGcEmrr7hWz')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIAoy6PqeMVn')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIjETAtuhYGM')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIHa0znP5qAk')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lIOCaSXg9YE7')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lInRozGrMa7T')%20and%20(RowKey%20eq%20'')) %20or%20((PartitionKey%20eq%20'lILEwwPPcBfe')%20and%20(RowKey%20eq

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

人走茶凉 提交于 2019-11-28 08:28:15
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 word!"; var messagePartitionKey = DateTime.Now.ToString("o"); var messageEntity = new MessageEntity

How to get more than 1000 entities from an azure table storage query?

六眼飞鱼酱① 提交于 2019-11-28 06:22:11
问题 I have read that azure table storage queries give maximum of 1000 entities and we have to make use of continuation tokens to fetch the next set of entities. I am just looking for an easy way to do that. All I want to do is fetch all the entities that the query should actually return and not just the 1000 entities. I have read @smarx post here and he mentions about ExecuteAll method in TableStorageDataServiceQuery but this seems to have deprecated as I cant find TableStorageDataServiceQuery in

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

烈酒焚心 提交于 2019-11-28 05:33:24
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 I can't reach more 10 inserts per second. If someone know how to increase speed please advise me.

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

家住魔仙堡 提交于 2019-11-28 03:07:58
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? Igorek 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 negative side, SQL Azure is relatively expensive for gigabyte of storage, does not scale super well and is

Do Azure table services entities have an equivalent of NonSerializedAttribute?

吃可爱长大的小学妹 提交于 2019-11-28 02:59:23
问题 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? 回答1: 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

Querying Windows Azure Table Storage with multiple query criteria

做~自己de王妃 提交于 2019-11-28 02:50:16
问题 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) ));

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

守給你的承諾、 提交于 2019-11-28 02:02:39
问题 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"]

Design of Partitioning for Azure Table Storage

独自空忆成欢 提交于 2019-11-27 22:35:04
问题 I have some software which collects data over a large period of time, approx 200 readings per second. It uses an SQL database for this. I am looking to use Azure to move a lot of my old "archived" data to. The software uses a multi-tenant type architecture, so I am planning to use one Azure Table per Tenant. Each tenant is perhaps monitoring 10-20 different metrics, so I am planning to use the Metric ID (int) as the Partition Key. Since each metric will only have one reading per minute (max),