Pick the least restrictive shard key that still avoids skew. Run EXPLAIN on your hot queries: if you see Gather partitions:all on queries that should hit one partition, the shard key is wrong. For time-series or URL-like data, a composite key of the high-cardinality filter plus a second column usually beats a single skewed column. Review the whole table layout with the Optimizing Table Data Structures guide when this pattern repeats.

Context: Official docs (query tuning): documents the gotcha that a bad shard key choice silently turns SingleStore queries into full scatter-gather. The example shards a urls table on domain, which routes single-domain lookups to one partition but creates data skew when some domains dwarf others. The docs recommend sharding on (domain, path) as the compromise between routability and skew.