I have to make a query on an Azure table storage where I have the following setup: RowKey, PartitionKey, ThirdColumn
The RowKey is unique, and the Partitionkey corelates with ThirdColumn, meaning all third columns with the value "Y", will have the partition key "X".
I have to get all entities with partition key X, by using the ThirdColumn value. This will not be performant because Y is neither PartitionKey or RowKey.
Question is: Does it make sense to do a .FirstOrDefault() on the third column, in order to get an entity (any entity), and then do a query using the PartitionKey ? I think it would be better because then it doesn't have to search on different machines for the data.
Regards,