I am using Document DB with partition key = "deviceId". Is there any different between 2 code below:
var fo = new FeedOption{ PartitionKey= new PartitionKey("A1234") };
var partitionKeyInQuery= dbClient.CreateDocumentQuery(d => d.deviceId = "A1234" and d.type==1, fo);
var noPartitionKeyInQuery = dbClient.CreateDocumentQuery(d => d.type==1, fo);
When PartitionKey is applied in FeedOption, should I add "deviceId" in WHERE clause?