I have an Azure storage table in which each partition stores some information about my custom data class. Each partition row is more like a history of that class and only the latest record is supported to get returned when queried.
When I know which partition I want to look up, then it is very easy to get the latest record like this:
string pkFilter = TableQuery<MyEntity>.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, partitionkeyvalue);
var query = new TableQuery<MyEntity>().Where(pkFilter).Take(1);
Now the scenario is to get the top record from all partitions. How do I retrieve the top record of each partition in a single call in an efficient way?