azure-table-storage

Azure table query partial partitionkey guid match

℡╲_俬逩灬. 提交于 2019-12-11 01:42:27
问题 I have the below PartitionKey and want to find it via a "EndsWith" "092a2dca-7107-4859-a129-e590ebd86614" query. e306cdfc-f573-490c-937b-c283f2d61e6c|092a2dca-7107-4859-a129-e590ebd86614 Is there a way to do this via the Compare string method which is supported? 回答1: The answer is no. Do not do a partial look up on a Partition Key, that results in a regular old table scan. 回答2: I'd suggest watching this cloud cover episode where Jai Haridas walks through designing for scale in windows azure

Azure table store snapshot/backup capability

…衆ロ難τιáo~ 提交于 2019-12-11 00:27:00
问题 I don't seem to be able to find any documentation on taking snapshots of an Azure table store, and neither can I find anything on taking backups either. I've found a few posts from a few years ago with people saying they export their table stores to another storage account via AzCopy running on a VM called by Windows scheduler, but this seems awfully archaic and would mean storing complete copies of data. The only thing that the Azure documentation seems to mention is snapshots of blob

Unable to Get records from Table Storage

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:09:38
问题 I have a table storage table from which I want to fetch some data. The insert and update queries work fine but I am having issues when I try to select some records. Below is the code I have done so far: class TransactionEntity : TableEntity { public String s{ get; set; } public Int32 r { get; set; } public String e{ get; set; } public String t{ get; set; } public String l{ get; set; } public TransactionEntity(String id, String s, String e, String t) { this.r= 0; this.s= s; this.RowKey = id;

Can I have my class inherit from another class at run-time?

人盡茶涼 提交于 2019-12-10 21:08:20
问题 I have a class (person) that is a model in my MVVM application. I want to save this class to Azure Table Storage. To save to Azure Table Storage, you need to derive from a class called TableServiceEntity. I'd prefer to not clutter my nice class with attributes meant for storage (seems like a good idea in considering separation of concerns). Can I somehow have my class derive from TableServiceEntity at run-time, inside the methods that receive the object as a parameter and persist it to

Table storage (emulator) insert fails with “One of the request inputs is not valid.”

旧时模样 提交于 2019-12-10 17:48:51
问题 I have an import process that takes data from an old source and puts it into table storage, which allows me to re-init table storage and start over as needed. It was working prior to updating to the October Azure SDK for .NET (VS2012). Now, it fails after inserting a few entities (it seems to vary, the imported data is not static in nature). The first entity, of the same type, always inserts successfully. The partition keys are unique, and the RowKey for each is an empty string ( not null).

Azure tables query by rowkey as condition

房东的猫 提交于 2019-12-10 17:23:44
问题 How good is to use a query to get record/records by rowkey? Does it make any sense of having queries that check's only the row key? I know you can combine primarykey + rowkey and get a specific record or then get all records by a specific partition key (so all related data will be returned fast). I guess that if you make a query that looks for rowkey then the performance will go down when you query a table with high amount of items as it has to look through all of them. Can you guys tell a

October Azure SDK broken when inserting a string with a trailing space

旧时模样 提交于 2019-12-10 16:37:32
问题 Has anyone worked out a fix for this problem. When using the storage emulator and inserting a row into table storage then the row insert fails if there is a space at end of the field. This was pointed out two weeks ago but I still see no updates from Microsoft on this? Does anyone know of a fix ? Microsoft forum link Stackoverflow link Please don't close this question. Having something out here on Stackoverflow might help save someone from the two days I spent trying to work out what was

Any Azure Storage viewer available for Mac? [closed]

无人久伴 提交于 2019-12-10 16:04:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I want to be able to view my Azure Table storage account, tables, data, etc, from my MacBook. I haven't seen any applications or even sites that would allow me to do this. Is there any way I can do this without using a Virtual Machine? 回答1: The correct answer is use Microsoft's new tool: http://storageexplorer

Query azure table by collection of row keys

ⅰ亾dé卋堺 提交于 2019-12-10 15:49:48
问题 I need to do a look up of several entities by collection of row keys (in one partition). What is the proper query to do it? 回答1: The issue with querying only by rowkey (which I'm interpreting the original question to be alluding to): You'll end up doing a table scan, as that rowkey could exist in any partition. And, if you executed those queries individually, you'd end up doing a table scan for each (even with Task Parallel Library, as suggested by @GlennFerrieLive in a comment to the

Azure Table Storage - 501 NotImplemented on CreateIfNotExistsAsync

扶醉桌前 提交于 2019-12-10 14:47:56
问题 I'm using a storage account and account key/creds which I know to work: I have a blob container using exactly the same connection string which works fine. I'm effectively doing this: CloudStorageAccount.Parse(_connectionString).CreateCloudTableClient().GetTableReference("MyTableHere").CreateIfNotExistsAsync().Wait() (I'm not in an async scenario, hence the wait. Has nothing to do with this exception) It throws an aggregate exception, the single inner exception is: Unexpected response code,