π§ Key Insight
In YugabyteDB, your primary key is not just an identifier… it determines how your data is distributed across the cluster.
By default, YugabyteDB uses HASH sharding, which automatically distributes writes… even for sequential keys.
But if you switch to RANGE sharding, your key design becomes critical to avoid hotspots.