Suppose I've the following data in my container:
{
"id": "1DBF704E-1623-4844-DC86-EFA729A5C048",
"firstName": "Wylie",
"lastName": "Ramsey",
"country": "AZ",
"city": "Tucson"
}
Where I use the field "id" as the item id, and the field "country" as the partition key, when I query on specific partition key:
SELECT * FROM c WHERE c.country = "AZ"
(get all the people in "AZ")
Should I add "country" as an index or I will get it by default, since I declared "country" as my partition key?
Is there a difference when using the SDK (meaning: adding the new PartitionKey("AZ")
option and then sending the query as mentioned above)?
/*
is added to theexcludedPaths
. Correct me, if I am wrong @Joggle – Houseboat