I've seen a lot written about choosing good partition keys in CosmosDB, but I was wondering whether there are advantages to short or long partition key values? Obviously particularly long ones will make the documents longer, which will consume more RUs, but other than that, does it make any difference?
The length of the partition key value itself doesn't have a direct impact on performance or scalability. The length of your partition key value is just one factor to consider when choosing a partition key for your Cosmos DB container. The most important thing is to choose a property that has a number of distinct values and lets you distribute your workload evenly across these values. Choose a partition key