What is the best workaround to achieve uniqueness and sharding? for instance we want to shard a user
collection based on unique username
that users choose for themselves and it is immutable
I think the best solution is hashed shading but unfortunately we cannot enforce uniqueness for hashed index
So is ranged sharding good? is there recommended solution?