Meanwhile reading querying tables and entities in Azure Table Storage service on Microsoft docs I found PartitionKey
and RowKeys
can be filtered in 2 different ways in the myaccount.table.core.windows.net URL as the following:
https://<service-url>/Customers(PartitionKey='MyPartition',RowKey='MyRowKey1')
And using $filter
to achieve the same:
https://<service-url>/Customers()?$filter=PartitionKey%20eq%20'MyPartitionKey'%20and%20RowKey%20eq%20'MyRowKey1'
I understand from the documentation PartitionKey
and RowKey
properties are forming the entity's primary key so the first syntax can be used as well as the Filtering on the PartitionKey and RowKey Properties part states:
Because the PartitionKey and RowKey properties form an entity's primary key, you can use a special syntax to identify the entity.
Questions:
- Is there any drawbacks, disadvantages using
$filter
instead of that special syntax what has been mentioned? - Does it matter which one I use in my solution?
Any clarification is appreciated, thank you!