Reputation: 50728
I'm using the Volcano JSON sample with 1571 documents. I created one container (using the Cosmos DB Emulator) partitioned by ID and one container partitioned by Country. I expected to see that when I ran these queries:
select *
from VolcanoesById c
where c.Country = 'Japan'
select *
from VolcanoesByCountry c
where c.Country = 'Japan'
The RU cost listed in the emulator has the same charge:
Partitioned by ID:
Vs the partition by country:
Shouldn't the query by country partitioned on country be a smaller RU result?
Upvotes: 1
Views: 462
Reputation: 15583
The reason could be that the Container you created has a single physical partition.
Try creating in the Emulator containers with multiple physical partitions (you can achieve that by provisioning more than 10K RU) and repeating the same exercise.
Upvotes: 2